All SQL problems
MediumGROUP BY
Cities with 3+ customers
Return only the cities that have 3 or more customers. Show city + count.
- #having
Schema (SQLite, in-browser)
customers (id, name, city, signup_date) products (id, name, category, price) orders (id, customer_id, order_date, status) order_items (order_id, product_id, quantity)
Sample input
10 customers across 4 cities
Expected shape
2 rows
sql-having.sqlSQLite
Result
Press “Run query” to execute against the sample database.
