Zomato wants to boost user retention by offering a special "First-Time Coupon" to loyal customers who haven't discovered the benefits of discounts yet.
Write an SQL query to identify users who have placed 5 or more orders and have never used a coupon (coupon_id is NULL for all their orders).
| user_id(INTEGER) | coupon_id(VARCHAR) |
|---|---|
| 1 | null |
| 1 | null |
| 1 | null |
| 1 | null |
| 1 | null |
| 2 | SAVE10 |
| 2 | null |
| 2 | null |
| 2 | null |
| 2 | null |
| 3 | null |
| 4 | null |
| 4 | null |
| 4 | null |
| 4 | null |
| 4 | null |
| user_id(INTEGER) | total_orders(INTEGER) |
|---|---|
| 1 | 5 |
| 4 | 5 |