



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
The objectives of a database design lecture, focusing on guidelines for creating efficient relational schemas, functional dependencies, and normalization up to the boyce-codd normal form. The slides are based on the textbook 'fundamentals of database systems' by elmasri & navathe.
Typology: Study notes
1 / 7
This page cannot be seen from the preview
Don't miss anything!
Dr. Ala Al-Zobaidie The slides are based on the textbook: Fundamentals of Database Systems by Elmasri & Navathe
30/05/2007 DBDI /FD & Norm 2
Lectureās Objectives
30/05/2007 DBDI /FD & Norm 3
Design guidelines for relational
schema
30/05/2007 DBDI /FD & Norm 4
Guideline 2: Reducing storage area
Update Anomalies
Guideline 2: Avoiding update anomalies
30/05/2007 DBDI /FD & Norm 7
Emp-Dept & Emp_Prj: Suffers from Update Anomalies due to Redundancy
30/05/2007 DBDI /FD & Norm 8
30/05/2007 DBDI /FD & Norm 9
30/05/2007 DBDI /FD & Norm 10
Query: List the name & hours of all projects that John Smith worked on.
3
Query: List the name & hours of all projects that John Smith worked on.
3 ² ² ²
3
² ² ²
3 3
30/05/2007 DBDI /FD & Norm 19
Dependency Inference Rules/
Dependency Inference Rules/
Also expressed as
30/05/2007 DBDI /FD & Norm 21
Logical vs. Storage design
30/05/2007 DBDI /FD & Norm 22
The Process of Normalization
Unnormalised Form (UNF)
Example of a relation instance
Multi Value
First Normal Form (1NF)
30/05/2007 DBDI /FD & Norm 25
UNF to 1NF/
1 st^ NF relation with redundancy
30/05/2007 DBDI /FD & Norm 26
UNF to 1NF/ Or by
30/05/2007 DBDI /FD & Norm 27
Second Normal Form (2NF)
30/05/2007 DBDI /FD & Norm 28
1NF to 2NF
SSN PNUMBER HOURS ENAME PNAME PLOCATION
Examples of transformation into 2NF
Into 2NF
EMP_PROJ
FD FD FD
Third Normal Form (3NF)
A B C
30/05/2007 DBDI /FD & Norm 37
1004 Database Alun
1003 Spreadsheet Phil
1002 Database Ala
1001 Network Sati
1001 Database Ala
Client Subject Staff
30/05/2007 DBDI /FD & Norm 38
Staff is a determinate but not a candidate key
Client Subject Staff
Client Staff Subject
30/05/2007 DBDI /FD & Norm 39
1004 Database Alun
1003 Spreadsheet Phil
1002 Database Ala
1001 Network Sati
1001 Database Ala
Client Subject Staff
30/05/2007 DBDI /FD & Norm 40
Alun Database
Phil Spreadsheet
Sati Network
Ala Database
Staff Subject
Client Staff (^) Staff Subject
1002 Ala
1004 Alun
1003 Phil
1001 Sati
1001 Ala
Client Staff
30/05/2007 DBDI /FD & Norm 41