← Quiz: Keys and Constraints: all 10 questions
Quiz: Keys and Constraints · Question 3 of 10
Which is true about a foreign key?
Which is true about a foreign key?
- A.It must be unique
- B.It can't be NULL
- C.Its value must match a primary key value in the referenced table (or be NULL)
- D.It must be the first column
Answer & explanation
Correct answer: Its value must match a primary key value in the referenced table (or be NULL)
That's referential integrity. Many rows can share the same foreign key value.
Can you get the rest right without peeking?
Take the timed Quiz: Keys and Constraints quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →