QuestionQ49

VerifiedManaging Constraints

Which four statements are true concerning primary and foreign key constraints and the effects they can have on table data?

Choose three
Explanation

A table can have one primary key and multiple foreign keys. ON DELETE SET NULL can retain child rows while setting their foreign-key values to NULL, and ON DELETE CASCADE can automatically delete dependent child rows. Foreign-key and referenced primary-key columns do not need identical names, and both primary-key and foreign-key constraints—not only primary keys—may be declared inline or out of line. Consequently, only three supplied choices are true; no fourth correct choice is present.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!