Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
103 views
in Programming by (95.6k points)
closed by
Let for any relation R. IR represents operation insert into R and DR represents operation delete from R. Assume that a relation R2 has a foreign key that refers to primary key of another relation R1. Two operations that may cause violation of referential integrity constraints are:
1. IR1 and IR2
2. DR1 and DR2
3. IR1 and DR2
4. IR2 and DR1

1 Answer

0 votes
by (98.5k points)
selected by
 
Best answer
Correct Answer - Option 4 : IR2 and DR1

Table R1(Having Primary Key)

A

B

C

1

 

 

2

 

 

3

 

 

 

Table R2(Having Foreign Key)

A

B

C

1

 

 

2

 

 

3

 

 

 

 

 

 

 

 

  • Insert into R1 cannot cause any violation.
  • Insert into R2 can cause violation if any value is inserted into D of R2 which value is not in A in R1
  • Delete from R1 can cause violation if any tuple is deleted which is referenced to by D in R2.
  • Delete from R2 cannot cause any violation

Violation of referential integrity constraints are: DR1 and IR2

Option 4 is correct.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...