Sampath Jayarathna Cal Poly Pomona

Slides:



Advertisements
Similar presentations
Database Design: Normalization J.G. Zheng June 29 th 2005 DB Chapter 4.
Advertisements

5 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Normalisation to 3NF Database Systems Lecture 11 Natasha Alechina.
Boyce-Codd NF Takahiko Saito Spring 2005 CS 157A.
Normalization Normalization We discuss four normal forms: first, second, third, and Boyce-Codd normal forms 1NF, 2NF, 3NF, and BCNF Normalization.
Boyce-Codd Normal Form Kelvin Nishikawa SE157a-03 Fall 2006 Kelvin Nishikawa SE157a-03 Fall 2006.
Normalization of Database Tables
Chapter 5 Normalization of Database Tables
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 5 Normalization of Database Tables.
Why Normalization? To Reduce Redundancy to 1.avoid modification, insertion, deletion anomolies 2.save space Goal: One Fact in One Place.
NORMALIZATION N. HARIKA (CSC).
Lecture 12 Inst: Haya Sammaneh
5 1 Chapter 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 6 Normalization of Database Tables.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 5 Normalization of Database.
CSC 411/511: DBMS Design Dr. Nan Wang 1 Schema Refinement and Normal Forms Chapter 19.
Normalization Copyright © 1999 Patrick McDermott College of Alameda
By Abdul Rashid Ahmad. E.F. Codd proposed three normal forms: The first, second, and third normal forms 1NF, 2NF and 3NF are based on the functional dependencies.
Database Design – Lecture 8
Normalization of Database Tables
Dr. Mohamed Osman Hegaz1 Logical data base design (2) Normalization.
Normalization MIS335 Database Systems. Why Normalization? Optimizing database structure Removing duplications Accelerating the instructions Data integrity!
Normalization.
Functional dependencies and normalization 1 Normalization Functional dependencies NF + BCNF.
Database Design Theory CS405G: Introduction to Database Systems Jinze Liu 3/15/20161.
Week 4 Lecture Part 1 of 3 Normalization of Database Tables Samuel ConnSamuel Conn, Asst. Professor.
Database Architecture Normalization. Purpose of Normalization A technique for producing a set of relations with desirable properties, given the data requirements.
What Is Normalization  In relational database design, the process of organizing data to minimize redundancy  Usually involves dividing a database into.
Normal Forms 1NF – A table that qualifies as a relation is in 1NF. (Back)(Back) 2NF – A relation is in 2NF if all of its nonkey attributes are dependent.
CS 3630 Database Design and Implementation
Understanding Data Storage
Revised: 2 April 2004 Fred Swartz
Chapter 5: Relational Database Design
Advanced Normalization
Normalization (Chapter 2)
SEEM3430: Information Systems Analysis and Design
Normalization Karolina muszyńska
CS 3630 Database Design and Implementation
A brief summary of database normalization
Chapter 4: Relational Database Design
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
Functional Dependencies
Normal Forms.
Advanced Normalization
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
CS 3630 Database Design and Implementation
The Relational Model and Normalization
Normalization of Database Tables PRESENTED BY TANVEERA AKHTER FOR BCA 2ND YEAR dated:15/09/2015 DEPT. OF COMPUTER SCIENCE.
Normalization There is a sequence to normal forms:
Chapter 6 Normalization of Database Tables
CS 3630 Database Design and Implementation
Normalization By Jason Park Fall 2005 CS157A.
Database solutions The process of normalization Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology rooms:
Normalization Dale-Marie Wilson, Ph.D..
Normalization Normalization
Normalization.
Normalization of Database Tables Uploaded by: mysoftbooks.ml
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
RDBMS RELATIONAL DATABASE MANAGEMENT SYSTEM.
CSE2DBF – CSE4DBF Normalization 20/03/2017
Boyce-Codd Normal Form (BCNF)
Normalization February 28, 2019 DB:Normalization.
Normalization of DB relations examples Fall 2015
Sampath Jayarathna Cal Poly Pomona
NORMALIZATION FIRST NORMAL FORM (1NF):
Chapter 4 The Relational Model and Normalization
Database Design Theory CS405G: Introduction to Database Systems
Database Management System
Normalization By Jason Park Fall 2005 CS157A.
Database Normalization
Presentation transcript:

Sampath Jayarathna Cal Poly Pomona Lecture 3&4 Supplement Sampath Jayarathna Cal Poly Pomona

Data normalization Normalization is a formal process for deciding which attributes should be grouped together in a relation Normalization is a process that “improves” a database design by generating relations that are of higher normal forms. The objective of normalization: “to create relations where every dependency is on the key, the whole key, and nothing but the key”.

Data normalization 2NF is better than 1NF; 3NF is better than 2NF For most business database design purposes, 3NF is as high as we need to go in normalization process Highest level of normalization is not always most desirable

Functional dependencies and keys Functional dependency: the value of one attribute (the determinant) determines the value of another attribute A -> B, for every valid instance of A, that value of A uniquely determines the value of B Candidate key: an attribute or combination of attributes that uniquely identifies an instance Uniqueness: each non-key field is functionally dependent on every candidate key Non-redundancy

Conversion to First Normal Form (continued)

First normal form EmpNum EmpPhone EmpDegrees 123 233-9876 333 233-1231 No multi-valued attributes. Every attribute value is atomic. The following in not in 1NF EmpNum EmpPhone EmpDegrees 123 233-9876 333 233-1231 BA, BSc, PhD 679 233-1231 BSc, MSc

Second normal form 1NF and every non-key attribute is fully functionally dependent on the primary key. Every non-key attribute must be defined by the entire key, not by only part of the key. No partial functional dependencies.

Conversion to Second Normal Form

Third normal form 2NF and no transitive dependencies (functional dependency between non-key attributes.)

Removing a transitive dependency

Relations in 3NF

Conversion to Second Normal Form (continued)

The Boyce-Codd Normal Form (BCNF) Every determinant in table is a candidate key Has same characteristics as primary key, but for some reason, not chosen to be primary key When table contains only one candidate key, the 3NF and the BCNF are equivalent BCNF can be violated only when table contains more than one candidate key

The Boyce-Codd Normal Form (BCNF) (continued) Most designers consider the BCNF as special case of 3NF Table is in 3NF when it is in 2NF and there are no transitive dependencies Table can be in 3NF and fails to meet BCNF No partial dependencies, nor does it contain transitive dependencies A nonkey attribute is the determinant of a key attribute

The Boyce-Codd Normal Form (BCNF) (continued)

The Boyce-Codd Normal Form (BCNF) (continued)

The Boyce-Codd Normal Form (BCNF) (continued)