Which of the following is a violation of entity integrity in a relational database?
16 views
- Having a foreign key value that does not exist in the parent table
- Having a primary key with NULL values (Correct Answer)
- Having duplicate rows in a table
- Using inconsistent data types for attributes
Explanation
Entity integrity requires that every table must have a primary key, and primary key attributes cannot be NULL, ensuring each row is uniquely identifiable.