Skip to content
RED SAG Skills
easyStudy question · answer published in SQL interview questions, so no pointspostgresqlsql

NOT IN returns no rows

This query returns zero rows, though many customers have no blocked entry. The blocked table has one row where customer_id is NULL. Why?

SELECT * FROM customers
WHERE id NOT IN (SELECT customer_id FROM blocked);
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions