Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CIW Exam 1D0-541 Topic 2 Question 98 Discussion

Actual exam question for CIW's 1D0-541 exam
Question #: 98
Topic #: 2
[All 1D0-541 Questions]

Consider the Information Engineering diagram shown in the exhibit for a building

management company. Referential integrity must be maintained such that a building cannot be

deleted when it has residents. Building_ID, R_ID, Room_Count and Room_Num are integer

numbers, whereas Bldg_Name, Location and Res_Name are all represented by variable-length

strings with a maximum of 20 characters. Which SQL statement best implements the relations

shown in this diagram?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Olene
2 days ago
I think option D is the correct answer. The foreign key constraint on the Building_ID column in the RESIDENT table references the BUILDING table, ensuring referential integrity. The ON DELETE NO CHECK clause prevents deleting a building that has residents, and the ON UPDATE CASCADE clause ensures that changes to the Building_ID in the BUILDING table are propagated to the RESIDENT table.
upvoted 0 times
...
Mirta
10 days ago
Why do you think option C is better?
upvoted 0 times
...
Janet
12 days ago
I disagree, I believe option C is the best choice.
upvoted 0 times
...
Mirta
15 days ago
I think the correct answer is option B.
upvoted 0 times
...

Save Cancel