🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Filtering and Sorting: all 10 questions

Quiz: Filtering and Sorting · Question 2 of 10

What does WHERE deptid = NULL return?

What does WHERE dept_id = NULL return?

  1. A.Rows with no department
  2. B.No rows
  3. C.All rows
  4. D.An error in all databases
Answer & explanation

Correct answer: No rows

Comparing with NULL using = is never true. Use IS NULL.

Can you get the rest right without peeking?

Take the timed Quiz: Filtering and Sorting quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →