Question: Consider the following database. Relation Schemas: Relation Schemas: Suppliers ( SID CHAR ( 5 ) sName VARCHAR ( 1 5 ) , Parts ( pID

Consider the following database.
Relation Schemas:
Relation Schemas:
Suppliers(SID CHAR(5)
sName VARCHAR(15),
Parts(pID VARCHAR(5),
address VARCHAR(30),
aity VARCHAR(20),
type VARCHAR(15),
state CHAR(2),
pName VARCHAR(35)
PRIMARY KEY(sID)):
PRIMARY KEY(pID));
Catalog(sID CHAR(5)
pID VARCHAR(5),
qty SMALLINT,
cost FLOAT (10,2)
PRIMARY KEY(sid, pid),
FOREIGN KEY(sid) REFERENCES Suppliers(SID),
FOREIGN KEY(pid) REFERENCES Parts(p(D));
The meaning of these relations is straightforward; for example, the Catalog relation lists the prices charged for parts by Suppliers.
Instances of the relations:
Suppliers
\table[[sID,sName,address,city,state],[A3001,At,123 IT SL,Greensboro,NC],[A2002,Harold Goods,4S6ET St,Greensboro,NC],[A3010,Robert Computers,789 CT Rd,Charlotte,NC],[A0501,Brown Brothers,323 BE Rd.,Charlotte,NC]]
Part
\table[[ID,type,PVame,color],[M305,Mouse,Wireless Optical Mouse,Black],[KB010,Keytroard,Logitech Cordless Desktor:,White],[M111,Mouse,Wireless Optical Mouse,Pink]]
Catalog
\table[[SID,FID,gty,cost],[A3001,M305,2,20.00],[A2002,K BB010,3,35.90],[A3001,KB010,4,30.50]]
integrity constraint violations?
A. Reject, it violates the referential integrity constraint.
B. Reject, it violates the key constraint.
C. Reject, it violates the domain constraint.
D. Accept, there are no constraint violations.
 Consider the following database. Relation Schemas: Relation Schemas: Suppliers(SID CHAR(5) sName

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!