1 / 16

BACS 485

BACS 485. Normalization. Data Anomalies. WORKER ( WORKER-ID , NAME, SKILL-TYPE, SUPV-ID, BLD-ID). Normalization Process. 0NF. ORDERS ( ORDER-NUM , ORDER-DATE, {PART-NUM, PART-DESC, QTY-ORD, PRICE}). 1NF. ORDERS ( ORDER-NUM , ORDER-DATE, PART-NUM , PART-DESC, QTY-ORD, PRICE). 1NF.

brandi
Télécharger la présentation

BACS 485

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BACS 485 Normalization

  2. Data Anomalies WORKER (WORKER-ID, NAME, SKILL-TYPE, SUPV-ID, BLD-ID)

  3. Normalization Process

  4. 0NF ORDERS (ORDER-NUM, ORDER-DATE, {PART-NUM, PART-DESC, QTY-ORD, PRICE})

  5. 1NF ORDERS (ORDER-NUM, ORDER-DATE, PART-NUM, PART-DESC, QTY-ORD, PRICE)

  6. 1NF ORDERS (ORDER-NUM, ORDER-DATE, PART-NUM, PART-DESC, QTY-ORD, PRICE) ORDER-NUM, PART-NUM ---> QTY-ORD ORDER-NUM ---> ORDER-DATE PART-NUM ---> PART-DESC, PRICE

  7. 2NF ORDERS (ORDER-NUM, ORDER-DATE) PART (PART-NUM, PART-DESC, PRICE) ORDER-LINE (ORDER-NUM, PART-NUM, QTY-ORD) Part Orders Order_Line

  8. 3NF Problems CUSTOMER (CUST-NUM, CUST-NAME, CUST-ADDR, SALES-NUM, SALES‑NAME) Customer CUST-NUM ---> CUST-NAME, CUST-ADDR, SALES-NUM, SALES-NAME SALES-NUM ---> SALES-NAME

  9. 3NF Problems CUST-NUM ---> CUST-NAME, CUST-ADDR, SALES-NUM, SALES-NAME SALES-NUM ---> SALES-NAME

  10. 3NF CUSTOMER (CUST-NUM, CUST-NAME, CUST-ADDR, SALES-NUM) SALES-REP (SALES-NUM, SALES-NAME)

  11. BC/NF Problem FACULTY (NAME, DEPT, OFFICE, RANK, DATE-HIRED) OFFICE ---> DEPT NAME, DEPT ---> OFFICE, RANK, DATE-HIRED NAME, OFFICE ---> DEPT, RANK, DATE-HIRED

  12. BC/NF Problem OFFICE ---> DEPT NAME, DEPT ---> OFFICE, RANK, DATE-HIRED NAME, OFFICE ---> DEPT, RANK, DATE-HIRED

  13. BC/NF Solution FAC-LOC (OFFICE, DEPT) FACULTY (NAME, OFFICE, RANK, DATE-HIRED) • The NAME,OFFICE candidate key was chosen as the primary key because the NAME,DEPT candidate key would not be in BCNF. In fact, it would not even be in 2NF since there would be a partial dependency between OFFICE and DEPT.

  14. 0NF Relation FACULTY (FAC-ID, {STU-ID}, {COMMITTEE-CODE})

  15. Normalized? FACULTY (FAC-ID, STU-ID, COMMITTEE-CODE) FAC-NAME --->> STU-ID FAC-NAME --->> COMMITTEE-CODE

  16. 5NF FAC-STU (FAC-ID, STU-ID) FAC-COMM (FAC-ID, COMMITTEE-CODE)

More Related