Integrity Constraints: GATE CS Previous Year Questions

Integrity Constraints · Databases

2 questions · asked in 2 of 27 years (2000–2026)

MCQ 1 · NAT 11-mark 2

2000Questions per year2026

Questions 1–2 of 2

Q1GATE 2017 (Session 2)1 markNAT
Consider the following tables T1 and T2.
T1T2 PQRS 2222 3883 7332 5897 6957 8572 98
In table T1, P is the primary key and Q is the foreign key referencing R in table T2 with ondelete cascade and on-update cascade. In table T2, R is the primary key and S is the foreign key referencing P in table T1 on-delete set NULL and on-update cascade. In order to delete record (3,8) from table T1, the number of additional records that need to be deleted from table T1 is _____.

Q2GATE 20051 markMCQ−0.33 if wrong
The following table has two attributes A and C where A is the primary key and C is the foreign key referencing A with on-delete cascade.
AC 24 34 43 52 72 95 64
The set of all tuples that must be additionally deleted to preserve referential integrity when the tuple (2,4) is deleted is:

Keep practising

Topics in Databases

All CS topics ›