04 Try it yourself Interactive
One question, asked twice against the same four students: who is nobody’s mentor? Reading the table by eye, the answer is Chetan and Divya, because the mentor column holds NULL, S1, S1 and S2, and neither S3 nor S4 appears in it. NOT IN is the obvious way to write that. NOT EXISTS is the way that works. Step through both and watch the verdict for each student. Nothing plays on its own: Next, Back and Reset, or the arrow keys.