Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following relational schema represents Product-Supply schema: (Note that PK is underlined and bold-faced and * indicates FK.) PRODUCT (P#, P_NAME, PRICE. QTY) SUPPLY (S#*

image text in transcribed

The following relational schema represents Product-Supply schema: (Note that PK is underlined and bold-faced and "*" indicates FK.) PRODUCT (P#, P_NAME, PRICE. QTY) SUPPLY (S#* P** S_PRICE) SUPPLIER (S#. City). In this schema. P# = Product Number, QTY = Quantity on hand, S# = Supplier Number. PRICE in PRODUCT is the price of selling, while S_PRICE is the supplier-price supplied by the supplier. (28) P# 53 PRODUCT P NAME PRICE QTY TABLE 550 WALL UNIT 850 25 CHAIR 250 42 78 91 SUPPLY S# P# S PRICE 1253 450 1291 150 53 400 45 36 450 45 91 475 SUPPLIER S# CITY 23 NY 45 Philly DC 70 Boston 33 12 (a) Suppose we want to insert the following row of (91, STOOL, 150, 10) to Product table. Can we insert it? Why or why not? (6) (b) Suppose we want to enforce referential integrity constraints for the database. The above relations contain an important error. What is it? Be specific. (6)

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_2

Step: 3

blur-text-image_3

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

Transactions On Large Scale Data And Knowledge Centered Systems Xxxviii Special Issue On Database And Expert Systems Applications Lncs 11250

Authors: Abdelkader Hameurlain ,Roland Wagner ,Sven Hartmann ,Hui Ma

1st Edition

3662583836, 978-3662583838

More Books

Students also viewed these Databases questions

Question

Determine whether y is a function of x. y = x - 1

Answered: 1 week ago

Question

What are the stages of project management? Write it in items.

Answered: 1 week ago

Question

why do consumers often fail to seek out higher yields on deposits ?

Answered: 1 week ago

Question

Describe how to train managers to coach employees. page 404

Answered: 1 week ago

Question

Discuss the steps in the development planning process. page 381

Answered: 1 week ago