Basic Relational Design
"The key, the whole key, and nothing but the key."
1 / 16
Basic Relational Design "The key, the whole key, and nothing - - PowerPoint PPT Presentation
Basic Relational Design "The key, the whole key, and nothing but the key." 1 / 16 Basic Relational Design In a future series of lectures well learn relational design in detail For now well learn a semi-formal approach to
1 / 16
◮ In a future series of lectures we’ll learn relational design in detail ◮ For now we’ll learn a semi-formal approach to normalizing a
2 / 16
◮ Start with relation schemas derived from EER model ◮ Enumerate functional dependencies for each relation schema ◮ Decompose non-3NF relation schemas into 3NF schemas
3 / 16
4 / 16
5 / 16
6 / 16
◮ A → A ◮ AB → A ◮ AB → B
7 / 16
◮ minimizing redundancy, and ◮ minimizing insertion, deletion, and update anomalies (we’ll learn
8 / 16
9 / 16
10 / 16
11 / 16
◮ FD1: Ssn, Pnumber → Hours ◮ FD2: Ssn → Ename, ◮ FD3: Pnumber → Pname, Plocation
12 / 16
13 / 16
◮ FD1: Ssn → Ename, Bdate, Address, Dnumber, Dname, Dmgr_ssn ◮ FD2: Dnumber → Dname, Dmgr_ssn
14 / 16
15 / 16
◮ Every relation must have a key, and the 1NF assumption of the
◮ "The key,"
◮ A relation is in 2NF if it is in 1NF and no nonprime attribute has a
◮ "the whole key,"
◮ A schema is in 3NF if it is in 2NF and no nonprime attribute is
◮ "and nothing but the key.
16 / 16