Q4. Consider a database schema recording data for suppliers that supply parts for projects. We store...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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)? 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)?
Expert Answer:
Related Book For
Database management systems
ISBN: 978-0072465631
3rd edition
Authors: Raghu Ramakrishan, Johannes Gehrke, Scott Selikoff
Posted Date:
Students also viewed these databases questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Which of the following statements is true for real gases? Choose all that apply. 1. As attractive forces between molecules increase, deviations from ideal behavior become more apparent at relatively...
-
Would you advocate monetary restraint or stimulus for today's economy? Who would disagree with you?
-
Ranjeet Gill is a wedding planner who is one of the best known in her area; she has a high presence at wedding shows and works closely with a wedding dress boutique. On January 1, 2020, Ranjeet...
-
Power plants need extremely accurate speeds on their turbine generators. One customer had two generators running side by side, and the time between maximum beats was 2 hours. Calculate the beat...
-
The Nelson Company bought inventory for $50,000 on terms of 2/15, n/60. It pays for the first $37,500 of inventory purchased within the discount period and pays for the remaining $12,500 two months...
-
Encouraging team productivity can be a major issue in many organizations. Inclusive and Exclusive are the two common management styles most organizations exhibit. Discuss the effectiveness or...
-
John Campbell, an employee of Manhattan Construction Company, claims to have injured his back as a result of a fall while repairing the roof at one of the Eastview apartment buildings. He filed a...
-
The E.N.D. partnership has the following capital balances as of the end of the current year. Pineda Adams Fergie Gomez Total capital $ 280,000 240,000 210,000 190,000 $ 920,000 Answer each of the...
-
Instructions: Choose one of the following prompts and provide an answer that includes any necessary graphs. Be sure to label everything and use the four steps Instructions for narrative: Think of...
-
The purpose of this SLO check is to demonstrate an understanding of the use of audit risk model including audit risk, inherent risk, control risk, and detection risk. You can re-do the assignment...
-
This week we are being introduced to the main concept of accounting. To start the discussion, please select from one of the following questions. I will add more questions throughout the week. 1- Why...
-
Steve Shanklin founded Shanklin, Inc., a closely held corporation. He is the largest sales producer for the company. Steve passed away a few months ago. His estate includes the following assets: -...
-
Which are the two political ideologies that, according to John Chasteen, have dominated Latin American history for the past five centuries? A. liberalism and neoliberalism B. liberalism and...
-
1. For cach of the following situations, decide whether Al has diminishing marginal utility. Explain. a. The more economics classes Al takes, the more he enjoys the subject. And the more classes he...
-
Halley's comet travels in an ellipti- cal orbit with a = 17.95 and b = 4.44 and passes by Earth roughly every 76 years. Note that each unit represents one astronomical unit, or 93 million miles. The...
-
Consider a relation stored as a randomly ordered file for which the only index is an unclustered index on a field called sal. If you want to retrieve all records with sal > 20, is using the index...
-
Consider the following BCNF schema for a portion of a simple corporate database (type information is not relevant to this question and is omitted): Emp (eid, ename, addr, sal, age, yrs, deptid) Dept...
-
Briefly answer the following questions: 1. Explain the intuition behind the two rules in the Bell-LaPadula model for mandatory access control. 2. Give an example of how covert channels can be used to...
-
For the reaction system: where \(r_{1}=k_{1} C_{\mathrm{A}}, r_{2}=k_{2} C_{\mathrm{C}}, r_{3}=k_{3} C_{\mathrm{A}}\); and \(r_{4}=k_{4} C_{\mathrm{A}}\). The rate constants are \(k_{1}=\mathrm{a}...
-
When the third tPA cultivator in Example 2.3 is added to the cultivators in Example 7.6, as shown in Figure 7.27a, a significant time strain is placed on the process because the combined feed,...
-
Carry out a modified design for an ammonia converter in Example 8.5 consisting of three diabatic reactor bed sections, each of \(2 \mathrm{~m}\) diameter and \(2 \mathrm{~m}\) length (note that the...
Study smarter with the SolutionInn App