← Quiz: Keys and Constraints: all 10 questions
Quiz: Keys and Constraints · Question 4 of 10
Which constraint stops a salary of -500 from being inserted?
Which constraint stops a salary of -500 from being inserted?
- A.UNIQUE
- B.DEFAULT
- C.CHECK (salary > 0)
- D.NOT NULL
Answer & explanation
Correct answer: CHECK (salary > 0)
CHECK enforces a condition on the 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 →