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.

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs