e) Referential Integrity

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/4

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

5 Terms

1
New cards

Define referential integrity

The process of ensuring consistency

2
New cards

What does referential integrity ensure?

That information is not removed if it is required elsewhere in a linked database.

3
New cards

Why can’t a database in a relational database relationship be deleted?

As it is linked to another database, therefore to keep referential integrity rules it can’t be deleted.

4
New cards

What is a foreign key constraint?

A foreign key in one table must match a primary key in another table, or it must be null.

5
New cards

Give an example of a foreign key constraint using the table Orders, foreign key CustomerID and the Customers table:

If a table Orders has the foreign key CustomerID pointing to the Customers table, the CustomerID in Orders must correspond to an existing CustomerID in Customers.