Customers with no city
Easy
Show the name and country of customers whose city is not recorded.
Tables: customers(customer_id, name, city, country, joined) · products(product_id, name, category, price) · orders(order_id, customer_id, order_date, status) · order_items(order_id, product_id, quantity, unit_price)
Your query✔ Solved
Show the expected result
| name | country |
|---|---|
| Olivia Smith | Australia |
| Hiroshi Tanaka | Nepal |
2 rows
Show a solution
SELECT name, country FROM customers WHERE city IS NULL;
SQL used
New to SQL? The free SQL course teaches everything these problems use, with a self-checking exercise in every lesson.