Write a query to fetch name and amount of a customer as well as that whether he is eligible to buy multiple product or not from customer and order table.
Treat amount as the customer's total order amount. A customer is eligible when they have ordered at least two distinct products.
customer_name, total_amount, and eligible_for_multiple_products.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| name | VARCHAR(100) | Customer name |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | Customer who placed the order |
| product_id | INT | Product included in the order |
| amount | NUMERIC(10,2) | Order amount |