Explain the difference between entity integrity and referential integrity.

  • Ensuring the accuracy of attribute values in a table
  • Ensuring the accuracy of relationships between tables
  • Ensuring uniqueness of primary key values in a table
  • Maintaining consistency between foreign key and referenced primary key values
Entity integrity focuses on maintaining the accuracy and uniqueness of attribute values within a single table. It ensures that the primary key values are unique, preventing duplicate or null entries in primary key columns. Referential integrity, on the other hand, maintains consistency between foreign key and referenced primary key values across different tables, ensuring that relationships between tables are valid and accurate.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *