Answered step by step
Verified Expert Solution
Link Copied!

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: 3 hours, 20 minutes, 50 seconds.
Question Compietion Status:
10
20
3Q
4
512
6
70
8
9
10C
11
12 L ?2
130
14
15
16
17
Question 22
Consider the following database.
Relation Schemas:
Relation Schemas:
Suppliers(sID CHAR(5),
sName VARCHAR(15), address VARCHAR(30), city VARCHAR(20), state CHAR(2), PRIMARY KEY(sID));
Cntnlog(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 charge
Instances of the relations:
Suppliers
\table[[sID,sName,address,city,state],[A3001,At,123IT St.,Greensboro,NC],[A2002,Harold Goods,456ET St.,Greensboro,NC],[A3010,Robert Computers,789 CT Rd.,Charlotte,NC],[A0501,Brown Brothers,323 BE Rd.,Charlotte,NC]]
Parts
\table[[pID,type,pName,color],[M305,Mouse,Wireless Optical Mouse,Black],[KB010,Kevboard,Logitech Cordless Desktop,White],[M111,Mouse,Wireless Optical Mouse,Pink]]
Parts(pID VARCHAR(5), type VARCHAR(15), pName VARCHAR(35), color VARCHAR(20),
PRIMARY KEY(pID));
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.
image text in transcribed

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions