NOT IN trap
If the list of a NOT IN contains one NULL, NOT IN is never true. NOT EXISTS has no such trap.
task
Members who recommended nobody. The query with NOT IN returns 0 rows; get the right answer. Return member_id.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
If the list of a NOT IN contains one NULL, NOT IN is never true. NOT EXISTS has no such trap.
Members who recommended nobody. The query with NOT IN returns 0 rows; get the right answer. Return member_id.