In SQL, Integrity Control on DELETE CASCADE means:
a) To make users unable to delete a parent row if there are matching dependent rows
b) When a parent row is deleted, all dependent rows will be deleted
c) When a parent row is deleted, set the foreign key value to null in all the dependent rows
d) All of the above
Answer:option b
When a parent row is deleted ,all dependent rows will be deleted
This is correct beacuse in the SQL, integrity control on the delete cascade makes us to delete the child rows deleted which are dependent on the parents rows ,when parent rows are deleted.
So this is the correct option
And rest of the options are wrong because
It can delete the parents rows ,if there are matching dependent rows also
And when parent row is deleted it doesn't set foriegn key to null in the dependent rows,it just deletes the dependent rows
Get Answers For Free
Most questions answered within 1 hours.