Referential Integrity Flashcards

1
Q

What is referential integrity?

A

Referential integrity is feature in the database application that makes sure that a record exists in each table that has to have a primary key pointing to it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a example of a use of referential integrity?

A

One example is when an employee may have an employee number as their primary key that point to their salary in the pay table, and to their address in the address table.

This is where referential integrity comes in. If the primary key does not point to an entry in the salary table, then the database is broken.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly