2.11f

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

1/8

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.

9 Terms

1
New cards

What is referential integrity in a relational database?

A rule that requires foreign key values to either fully match or match some primary key value.

2
New cards

What happens if a primary key is updated in a relational database?

It may violate referential integrity unless actions like RESTRICT, SET NULL, SET DEFAULT, or CASCADE are applied.

3
New cards

How is a composite key defined in terms of null values?

A composite key value is partially null if some but not all columns are null.

4
New cards

What is the effect of deleting a foreign key on its corresponding primary key?

Deleting a foreign key has no effect on the primary key.

5
New cards

What does the RESTRICT action do in referential integrity?

It rejects an insert, update, or delete that violates referential integrity.

6
New cards

What is the CASCADE action in referential integrity?

It propagates primary key changes to foreign keys; if a primary key is deleted, matching foreign keys are also deleted.

7
New cards

What does SET DEFAULT do in referential integrity actions?

It sets invalid foreign keys to the foreign key default value.

8
New cards

Can a null in a simple foreign key violate referential integrity?

No, a null in a simple foreign key does not violate referential integrity.

9
New cards

What happens if a primary key is deleted in relation to foreign keys?

If the primary key is deleted, rows containing matching foreign keys are deleted.