Question: Question 2 . Consider the following relations: Relation R 1 Relation R 4 Relation R 2 Relation R 5 Relation R 3 Primary Keys :

Question 2.
Consider the following relations:
Relation R1
Relation R4
Relation R2
Relation R5
Relation R3
Primary Keys :
Relation R1: A,B
Relation R2: D
Relation R3: M,N,O
Relation R4: J,K
Relation R5: S
The following foreign key constraints are given for relations R1,R2,R3,R4 and R5 :
R3(MN) references R1(AB)
R3(O) references R2(D)
R1(C) references R5(S)
R4(J) references R5(S)
R4(K) references R2(D)
Assume
"CASCADE" policy for delete operations, and
"SET NULL" policy for update operations.
a)(10%) For the operations given below, indicate whether execution of the operation would
violate some "primary key" or "integrity constraints". If your answer is yes, specify the
constraints (from the above list) that would be violated.
i) Insert tuple (a1,b10,d20,35) into R3.
ii) Insert tuple (5500,d20,75) into R4.
 Question 2. Consider the following relations: Relation R1 Relation R4 Relation

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!