Missing customer emails
Find customers whose email is NULL. Return customer_id and customer_name. Row order does not matter.
Output
customer_idcustomer_namequery.sql
DuckDB SQLRestoring your saved draft…
Run a query to see results.
Reveal solution & explanation
SELECT customer_id, customer_name FROM customers WHERE email IS NULL;
SQL uses three-valued logic. IS NULL checks missingness; equality with NULL does not.
Data & schema
- customer_id
- INTEGER · PK
- customer_name
- VARCHAR
- country
- VARCHAR
- VARCHAR
- signup_date
- DATE
Table notes & relationships
Buyer accounts. Some buyers have no orders, and some email addresses are NULL.
Fictional teaching data. Money is USD cents; timestamps are UTC.