2.11f

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 8

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

9 Terms

1

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.

New cards
2

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.

New cards
3

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.

New cards
4

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.

New cards
5

What does the RESTRICT action do in referential integrity?

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

New cards
6

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.

New cards
7

What does SET DEFAULT do in referential integrity actions?

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

New cards
8

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

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

New cards
9

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.

New cards
robot