ExamGecko
Question list
Search
Search

Question 63 - DS0-001 discussion

Report
Export

Which of the following constraints is used to enforce referential integrity?

A.
Surrogate key
Answers
A.
Surrogate key
B.
Foreign key
Answers
B.
Foreign key
C.
Unique key
Answers
C.
Unique key
D.
Primary key
Answers
D.
Primary key
Suggested answer: B

Explanation:

The constraint that is used to enforce referential integrity is foreign key. A foreign key is a column or a set of columns in a table that references the primary key of another table. A primary key is a column or a set of columns in a table that uniquely identifies each row in the table. Referential integrity is a rule that ensures that the values in the foreign key column match the values in the primary key column of the referenced table. Referential integrity helps maintain the consistency and accuracy of the data across related tables. The other options are either different types of constraints or not related to referential integrity at all. For example, a surrogate key is a column that is artificially generated to serve as a primary key, such as an auto-increment number or a GUID (Globally Unique Identifier); a unique key is a column or a set of columns in a table that uniquely identifies each row in the table, but it can have null values unlike a primary key; there is no such constraint as TID.Reference:CompTIA DataSys+ Course Outline, Domain 1.0 Database Fundamentals, Objective 1.2 Given a scenario, execute database tasks using scripting and programming languages.

asked 02/10/2024
Mohammad Wahid
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first