Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following is true about "referential integrity" ?

  • A.It ensures that foreign keys are valid and correspond to primary keys.
  • B.It prevents the insertion of null values in a table.
  • C.It allows duplicate entries in a table.
  • D.It is unrelated to the relational database model.

Answer: A

Referential integrity ensures that foreign keys are valid and correspond to primary keys.

It requires every non-null foreign key value in one table to match an existing primary key value in the table it refers to, so there are no orphan records, such as an order for a customer who does not exist.

Preventing nulls is the NOT NULL constraint, preventing duplicates is the job of primary key or UNIQUE constraints, and referential integrity is a central part of the relational model.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.