Skip to content
RED SAGSkills
easy5 pts · first answer countspostgresqlsql

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