Which type of integrity constraint ensures that a foreign key value must either match an existing primary key value in the parent table or be NULL? MCQ with Answer and Explanation
Which type of integrity constraint ensures that a foreign key value must either match an existing primary key value in the parent table or be NULL?
A. Referential Integrity
B. Entity Integrity
C. Domain Integrity
D. Key Integrity
Answer: Option A
Solution (By JKSSB Mock Tests)
Referential Integrity ensures that relationships between tables remain consistent, requiring a foreign key to point to a valid existing row in the referenced table.
Explanation:
Both 'ADD column_name datatype' and 'ADD COLUMN column_name datatype' are valid syntax in some DBMS, but standard SQL uses 'ADD column_name datatype'. However, many DBMS support both.
No comments yet. Be the first to start the discussion!