Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For each exercise, you are required to build a set of tables normalized to 3NF.

ID: 3604538 • Letter: F

Question

For each exercise, you are required to build a set of tables normalized to 3NF. Tables should be described using the following notation: TABLE(field1, field2, field3, field4, field5, …) Using this notation, TABLE is the name of the table. Primary key fields are bold and underlined, like field1. Foreign key fields are italicized and required fields are in bold. Therefore, a required foreign key is in bold italics, like field2. An optional foreign key is in italics but not bold, as is field3. A primary key field that is also a foreign key is underlined, italicized, and bolded. Regular, non-key attributes are in bold when required, as is field4, and not in bold when optional, as is field5.

Exercise 7: Like the table in the previous exercise, a buyer can acquire products for more than one department. But in this case, assume a department can have many buyers. PRODUCT ( ProductID, ProductName, DeptName, DeptBudgetCode, BuyerName )

Explanation / Answer

Answer is as follows:

According to me the variatoins are as follows:

PRODUCT(ProductId, ProductName, DepaName, DeptBudgtCode, BuyerName);

The tables in 3NF for given problem is as follows:

The condition for the 3nf is if x-> y then x should be super key or the y should be prime attribute.

I found the functional dependencies as follows:

ProductId -> ProductName

DeptName -> DeptBudgetCode,BuyerName

from these we can find a candidate key i.e. ProductId,DeptName that defines the full table in 3nf with above dependencies.

ProductName is fully dependent on ProductId.

DeptBudgetCode and BuyerName are dependent on deptName. one department has many buyers so the buyers can be define by deptName.

For 3nf table you have to create tables:

1 for Products with ProductId and ProductName.

2 for DeptName, DeptBudgetCode, BuyerName.

if there is any query please ask in comments...

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote