Need Help. Thank you. Question 4 (4 points HAPPY INSURANCE Observe the HAPPY INS
ID: 3703970 • Letter: N
Question
Need Help. Thank you.
Question 4 (4 points HAPPY INSURANCE Observe the HAPPY INSURANCE DATABASE: CLIENT CientD ClientName Clientgent ClienSpauseName CAii Tom Al Jenny C222 Kan Af Biil C333 Cole A2 Amy C444 Dorothy A2 CS55 Andy A3 Amy C666 Tina A3Matt C777 Christina A4 Mike AGENT AgentiD AgentName AgentArea AgentRating AgentYearOfHire SupervisedBy A1 Kate 1 101 1990 A2 Amy 2 92 2009 A1 A3 Luke 3 100 1992 A4 la mes 3 90 2010 A3 AREA ArealD AreaName AreaHQ East Boston 2 West San ancisco 3 Central Chicago This database will be used for the following question citing tables from the HAPPY INSURANCE database. If a DBMS enforces an UPDATE SET-TO-NULL option on the referential integrity constraint between CLIENT and AGENT in the HAPPY INSURANCE database, what will be the outcome after a user tries to change the AgentlD value in the last record to A5? Value A4appears once in column AgentlD in AGENT, and value 44 appears once in column ClientAgent in table CLIENT Value ASappears once in column AgentlD in AGENT, and value A5 appears once in column ClientAgent in table CLIENT Value ASappears once in column AgentlD in AGENT, and value A5 does not appear in column ClientAgent in table CLIENT Value ASdoes not appear in column AgentID in AGENT, and value ASappears once in column ClientAgent in table CLIENTExplanation / Answer
Answer (C)
Value A5 appears once in column AgentID in AGENT and value A5 does not appear in column ClientAgent in table CLIENT.
Reason. If UPDATE SET-TO-NULL is enforced on the system, whenever an update is triggered on the table with a key its all corresponding foreign key tables with that column value is set to NULL.
After the update statement, the tables show up like this.
AGENT :
A1 Kate 1 101 1990
A2 Amy 2 92 2009 A1
A3 Luke 3 100 1992
A5 James 3 90 2010 A3
CLIENT :
C111 Tome A1 Jenny
C222 Karin A1 Bill
C333 Cole A2 Amy
C444 Dorothy A2
C555 Andy A3 Amy
C666 Tina A3 Matt
C777 Christina NULL Mike
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.