Presentation is loading. Please wait.

Presentation is loading. Please wait.

* 07/16/96 Normalization 2/16/2019 *.

Similar presentations


Presentation on theme: "* 07/16/96 Normalization 2/16/2019 *."— Presentation transcript:

1 * 07/16/96 Normalization 2/16/2019 *

2 Unnormalized Table University Course No Course Desc StdSSN StdCity
* 07/16/96 Unnormalized Table University Course No Course Desc StdSSN StdCity StdClass OfferNo OffTerm OffYear Grade Jun O1 O2 O3 Fall Winter 2000 3.5 3.3 3.1 3.4 S1 S2 C1 C2 Co1 Co2 Co3 DB VB OO 2/16/2019 *

3 Relations Unnormalized
* 07/16/96 Relations Unnormalized UNIVERSITY(StdSSN, StdCity, StdClass, (OfferNo, OffYear, Grade, CourseNo, CrsDesc)) 1NF UNIVERSITY(StdSSN, StdCity, StdClass, OfferNo, OffYear, Grade, CourseNo, CrsDesc) 2/16/2019 *

4 Conversion to 1NF No repeating group
* 07/16/96 Conversion to 1NF No repeating group Primary key will expand in converting a non-1NF table to 1NF 2/16/2019 *

5 * 07/16/96 Second Normal form 1 NF. If every nonkey column is dependent on the whole key, not part of the key. UNIVERSITY(StdSSN, StdCity, StdClass, OfferNo, OffYear, Grade, CourseNo, CrsDesc) 2/16/2019 *

6 Functional Dependencies
* 07/16/96 Functional Dependencies StdSSN, OfferNo -> Grade StdSSN -> StdCity, StdClass OfferNo -> OffTerm, OffYear, CourseNo, CrsDesc CourseNo -> CrsDesc 2/16/2019 *

7 2NF conversion Split into 3 Tables: Student(StdSSN, StdCity, StdClass)
* 07/16/96 2NF conversion Split into 3 Tables: Student(StdSSN, StdCity, StdClass) Offer(OfferNo, OffTerm, OffYear, CourseNo, CrsDesc) Grade (StdSSN, OfferNo, Grade) 2/16/2019 *

8 Third Normal Form 2NF, Determinants are the candidate keys.
* 07/16/96 Third Normal Form 2NF, Determinants are the candidate keys. Offer(OfferNo, OffTerm, OffYear, CourseNo, CrsDesc) CourseNo -> CrsDesc Split into two: Courses(CourseNo, CrsDesc) 2/16/2019 *

9 3NF Tables Courses(CourseNo, CrsDesc)
* 07/16/96 3NF Tables Student(StdSSN, StdCity, StdClass) Offer(OfferNo, OffTerm, OffYear, CourseNo) Courses(CourseNo, CrsDesc) Grade (StdSSN, OfferNo, Grade) 2/16/2019 *

10 Decomposition of 1NF Table into 2NF Tables
* Decomposition of 1NF Table into 2NF Tables 07/16/96 CatalogID ProductID Price Special Price CatalogIssueDate 23 1244 1245 1246 1247 1248 1249 1252 1253 1254 1257 15.00 15 14 21 24 19 12 13 11.20 16.80 16.40 19.20 15.20 8/1/2008 2/16/2019 *

11 Decomposition of 1NF Table into 2NF Tables
* Decomposition of 1NF Table into 2NF Tables 07/16/96 IssueDate is determined by CatalogID alone, not by both CatalogID and ProductID 2/16/2019 *

12 Conversion of 2NF Table into 3NF Tables
* 07/16/96 Conversion of 2NF Table into 3NF Tables ZipCode determines the value for State, and ZipCode is not the key to the table 2/16/2019 *


Download ppt "* 07/16/96 Normalization 2/16/2019 *."

Similar presentations


Ads by Google