Question 2636 – KVS 30-12-2018 Part-A
April 15, 2024
Computer-Networks
April 15, 2024
Question 2636 – KVS 30-12-2018 Part-A
April 15, 2024
Computer-Networks
April 15, 2024

Transactions

Question 49
The following table has two attributes X and Y where X is the primary key and Y is the foreign key referencing X with on delete cascade

The set of all tuples that must be additionally deleted to preserve referential integrity when the tuple (3,4) is deleted is:
A
(4,3) and (6,4)
B
(2,4) and (7,2)
C
(3,2) and (9,5)
D
(3,4),(4,3) and (6,4)
Question 49 Explanation: 
→ On removal of row (3,4), row (4,3) must also be deleted as they depend on value 3.
→ On removal of row (4,3), row (2,4) and (6,4) must also be deleted as it depends on value 4.
→ As there is no option with row(2,4) and also the question says additional tuples should be deleted. So, option D is eliminated.
Correct Answer: A
Question 49 Explanation: 
→ On removal of row (3,4), row (4,3) must also be deleted as they depend on value 3.
→ On removal of row (4,3), row (2,4) and (6,4) must also be deleted as it depends on value 4.
→ As there is no option with row(2,4) and also the question says additional tuples should be deleted. So, option D is eliminated.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!