Entity integrity and referential integrity
What does it mean to say that a database displays both entity integrity and referential integrity? And why entity integrity and referential integrity important in a database? Provide an application example to support your discussion.
Sample Answer
Entity integrity refers to the constraint that each row in a database table must have a unique identifier. This identifier is typically called the primary key. Referential integrity refers to the constraint that all foreign keys in a database table must reference valid primary keys in another table.
A database that displays both entity integrity and referential integrity means that all of the rows in the database are uniquely identifiable and that all of the foreign keys in the database reference valid primary keys.