Question

Consider a table Inventory with the following functional dependencies: cus_code, prod_id  cus_name,cus_address,prod_name,unit_cost, quantity cus_code ...

Consider a table Inventory with the following functional dependencies: cus_code, prod_id  cus_name,cus_address,prod_name,unit_cost, quantity cus_code  cus_name, cus_address prod_id  prod_name,unit_cost. a) In what normal form is relation R? Explain why? b) Is it possible to decompose R into a number of relations in order to achieve a higher normal form? Show the tables that result from the decomposition.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hi

Below is the answer-

The above table structure is in first normal form as the column of a table is not holding multiple values.

This table structure is not in second normal form because the non prime attributes should be fully dependent on the proper subset of candidate key. We can see prod_name given above can be determined by prod_id itself and it has no dependency on cus_code.

Hence, in order to convert this structure into second normal form, we need to break the cust table into 2 sub tables namely cust and prod as below-

a) cus_code --> {cus_name,cus_address , cus_name, cus_address }

b) prod_id -->{prod_name,unit_cost, quantity}

Regards,

Vinay

Add a comment
Know the answer?
Add Answer to:
Consider a table Inventory with the following functional dependencies: cus_code, prod_id  cus_name,cus_address,prod_name,unit_cost, quantity cus_code ...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT