LEFT JOIN between the customers and orders tables on the customer_id column.GROUP BY clause to group the results by customer_id.HAVING clause to filter groups where:
ORDER BY clause to sort the final result by customer_id.erDiagram
Customers {
int customer_id
varchar customer_name
}
Orders {
int order_id
int customer_id
varchar product_name
}
Customers ||--o{ Orders : ""