Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Remaining Time: 3 hours, 2 0 minutes, 5 0 seconds. Question Compietion Status: 1 0 2 0 3 Q 4 5 1 2 6 7
Remaining Time: hours, minutes, seconds.
Question Compietion Status:
L
Question
Consider the following database.
Relation Schemas:
Relation Schemas:
SupplierssID CHAR
sName VARCHAR address VARCHAR city VARCHAR state CHAR PRIMARY KEYsID;
CntnlogsID CHAR
pID VARCHAR
qty SMALLINT,
cost FLOAT
PRIMARY KEYsid pid
FOREIGN KEYsid REFERENCES SupplierssID
FOREIGN KEYpid REFERENCES Parts ;
The meaning of these relations is straightforward; for example, the Catalog relation lists the prices charge
Instances of the relations:
Suppliers
tablesIDsName,address,city,stateAAt StGreensboro,NCAHarold Goods, StGreensboro,NCARobert Computers, CT RdCharlotte,NCABrown Brothers, BE RdCharlotte,NC
Parts
tablepIDtype,pName,colorMMouse,Wireless Optical Mouse,BlackKBKevboard,Logitech Cordless Desktop,WhiteMMouse,Wireless Optical Mouse,Pink
PartspID VARCHAR type VARCHAR pName VARCHAR color VARCHAR
PRIMARY KEYpID;
Suppose that "Delete FROM Suppliers WHERE sName 'Harold Goods';" is applied directly to the a
A Accept, there are no constraint violations.
B Reject, it violates both the key constraint and referential integrity constraint.
C Reject, it violates the referential integrity constraint.
D Reject, it violates the key constraint.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started