Your question is Users With No Orders. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Grammarly's commerce team wants to identify users who have never placed an order. Write a PostgreSQL query that finds these users from the users and orders tables.
user_id and full_name.full_name, then by user_id.| Column | Type | Description |
|---|---|---|
| user_idPK | INTEGER | Unique Grammarly user identifier |
| full_name | VARCHAR(100) | User's display name |
| VARCHAR(255) | User's email address |
| Column | Type | Description |
|---|---|---|
| order_idPK | INTEGER | Unique order identifier |
| user_id | INTEGER | User associated with the order |
| product_name | VARCHAR(100) | Purchased Grammarly product |
| order_status | VARCHAR(20) | Order processing status |