| Lesson 15 | Referential integrity |
| Objective | Define referential integrity concept |
In simple databases with one or two tables and only one user entering data it is easy to ensure that the data remains consistent.
For example, if a Stories on CD supplier changed its company name, it would be relatively straightforward for a single user to update the name in a Vendors table and in an Items table that identified that company as the vendor for that product.
When you create a larger database or grant multiple users access to a database, it becomes harder to keep track of which data has been entered and changed.
As an example, consider the CUSTOMER and ORDER tables.
For example, if a Stories on CD supplier changed its company name, it would be relatively straightforward for a single user to update the name in a Vendors table and in an Items table that identified that company as the vendor for that product.
When you create a larger database or grant multiple users access to a database, it becomes harder to keep track of which data has been entered and changed.
As an example, consider the CUSTOMER and ORDER tables.