Loyalty Vouchers
EasyDescription
Every full 500 loyalty points earn one ₹100 voucher; leftover points don't count, so
1200 points earn 2 vouchers. Show every column of every customer, followed by the number of
vouchers they've earned as vouchers.
End your query with ORDER BY customer_id.
Tables
| customers |
|---|
| customer_id (PK) |
| full_name |
| phone |
| city |
| country |
| date_of_birth |
| loyalty_points |
| created_at |