Download presentation
Presentation is loading. Please wait.
1
Normalization Practice ANS
Yong Choi BPA CSUB
2
1NF Customer_ID Name Street Phone 104 Mr. Ray Suchecki
123 Pond Hill Road, Detroit, MI, 48161 (313) 624 Mr. Toby Stein 431 North Phillips Road, South Bend, IN, 46611 (219) 627 Mr. Gilbert Scholten 3915 Hawthorne Avenue, Toledo, OH, 43603 (419) Student_ID Advisor Advisor_Office Class_1 Class_2 Class_3 1022 Jones 412 101-07 143-01 159-02 4123 Smith 216 201-01 211-02 214-01
3
2NF PK
4
Functional Dependencies in EMPLOYEE2
EmpID CourseTitle DateCompleted Salary DeptName Name Dependency on entire primary key PK PK EmpID Name, DeptName, Salary Dependency on only part of the key EmpID, CourseTitle DateCompleted Therefore, NOT in 2nd Normal Form!!
5
Conversion to 2NF Decomposed into two separate relations
Both are full functional dependencies PK EmpID Salary DeptName Name PK PK CourseTitle DateCompleted EmpID
6
2NF Below table name is “Rental Info” and attributes are in below parenthesis. Arrowed direction shows functional dependency information. Rental Info (TransID, VideoID, Copy#, Title, Rent) Depend only on VideoID Depends on both TransID and VideoID
7
3NF: Define functional dependencies of below table using a functional dependency notation, then normalize to 3NF PK
8
3NF PK PK PK
9
BCNF Project Project_ ID Name Location Manager_ Address Budget
PK PK Project_ ID Name Location Manager_ Address Budget Functional Dependencies: Project_ID -> Project_Name | Project_Location | Manager_ID | Project_Budget Manager_ID -> Manager_Name | Manager_Address
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.