Referential and entity integrity are crucial to preserving valid relationships between tables and data within a database.
SQL queries will begin to fail if the data keys that connect the dots between their relationships do not match.
If an entity or table is relying on the keys in another entity or table, then relationships between the two can be lost if bad data is entered into one location.