A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. Let R1(a, b, c) and R2(x, y, z) be two relations in which a is the foreign key of R1 that refers to the primary key of R2. Consider following four options.

(a) Insert into R1 (b) Insert into R2
(c) Delete from R1 (d) Delete from R2

Which of the following is correct about the referential integrity constraint with respect to above?
a. Operations (a) and (b) will cause violation.
b. Operations (b) and (c) will cause violation.
c. Operations (c) and (d) will cause violation.
d. Operations (d) and (a) will cause violation.
Answer:Operations (d) and (a) will cause violation.
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: