Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q4. Consider a database schema recording data for suppliers that supply parts for projects. We store the following attributes: SupplierNo, SupplierName, PartNo, PartName, ProjectNo,

 

 

Q4. Consider a database schema recording data for suppliers that supply parts for projects. We store the following attributes: SupplierNo, SupplierName, PartNo, PartName, ProjectNo, ProjectName, Quantity. Four functional dependencies are known for this set of attributes, as marked in the figure below. SupplierNo SupplierName PartNo PartName Project No ProjectName Quantity A database designer uses the following two tables to store the data. Answer the following questions about the proposed design (in each question, show the reason clearly). SUPPLIER-PARTS( SupplierNo, SupplierName, PartNo, PartName, Qty) PROJECT-PART( ProjNo, ProjName, PartNo) (a) Suggest a primary key for the table SUPPLIER-PARTS (b) Suggest a primary key for table PROJECT-PARTS (c) Write some possible values (that are consistent with the database requirements) in the following instance of SUPPLIER-PARTS and demonstrate an insertion anomaly. Supplier No SupplierName PartNo PartName Quantity (d) Is it possible for PROJECT-PARTS to have update anomalies (give reason)? (e) We want to find out how much quantity of a specified part was used by a specified project. Write clearly (step-by-step) how you will use the two tables to find out this information. (f) Based on your answer of part (e) only, would you say that this design using the two tables is a good design (give reason)?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database management systems

Authors: Raghu Ramakrishan, Johannes Gehrke, Scott Selikoff

3rd edition

72465638, 978-0072465631

More Books

Students also viewed these Databases questions

Question

How has health psychology expanded into traditional health fields?

Answered: 1 week ago