🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.UNIQUE
  2. B.DEFAULT
  3. C.CHECK (salary > 0)
  4. 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 →