Normalization of Database Tables to Third Normal Form (3NF)
This document explains the process of normalizing database tables to achieve Third Normal Form, enhancing data integrity.
Olivia Smith
Contributor
4.1
42
7 months ago
Preview (2 of 4 Pages)
100%
Purchase to unlock
Page 1
Loading page ...
Normalization of Database Tables to Third Normal Form (3NF)Order IDOrderDateCustomerIDCustomer NameProductIDProduct Desc.ProductPriceQuantityOrdered100610/24/102Value Furniture754Dining TableWriters DeskEntertain Center800.00325.00650.00221100710/25/106Furniture Gallery1144 Drawer DresserEntertain Center500.00650.00431.Describe the steps you would take to bring the table(s) into third normal form compliance. Display the resulting thirdnormal formcompliant table or tables, identifying primary and foreign keys.Answer:R is in 3NF if and only if, for every FD X→A in R, at least one of the following is true:1. X contains A (so the FD is trivial).2. X is a superkey.3. A is contained in a candidate key of R.Step 1:Breaktheproduct table and create a price table to map the price of each product accurately.Step 2:Create a product table and other Product Price table.Product table:Product ID: Primary keyProductPriceID:Foreign keyProductIDProduct Desc.7Dining Table5Writers Desk
Page 2
Preview Mode
This document has 4 pages. Sign in to access the full document!