medium10 pts · first answer countssqlmissing-data
NOT IN returns no rows
This query returns zero rows even though many customers never ordered: SELECT * FROM customers WHERE id NOT IN (SELECT customer_id FROM orders). What is the most likely cause?
Discussion 0
Join free to post in the discussion.
Related questions
- Counting orders per customerData Scientist
- Customers with no ordersData Scientist
- Counting missing values in pandasData Scientist
- pandas mean with a missing valueData Scientist
- Filtering groups in SQLData Scientist
- COUNT of a column with NULLsData Scientist
- Latest order per customerData Scientist
- groupby with a missing keyData Scientist