Given a table of customers and their chosen food items, write a query to select customers who like both oranges and apples.
Use the provided customer and preference data, and treat food names as the values stored in the preference table. Return each qualifying customer once.
customer_id and customer_name.customer_id ascending.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer's name |
| Column | Type | Description |
|---|---|---|
| preference_idPK | INT | Unique food preference identifier |
| customer_id | INT | Customer associated with the preference |
| food_item | VARCHAR(50) | Food item selected by the customer |