✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
orders, order_details and customers. The orders table contains basic information about each order, including the order ID and customer ID, customers table contains information about customer, while the order_details table contains the details of each order, including the product ID, quantity, and price. You want to create a view that shows the order ID, customer name, product name, quantity, and price for all orders.
Example of the orders table:
| order_id | customer_id | order_date |
|---|---|---|
| 1 | 1 | 2022-03-01 |
| 2 | 2 | 2022-03-02 |
| 3 | 1 | 2022-03-03 |
| 4 | 3 | 2022-03-04 |
Example of the order_details table:
| order_id | product_id | quantity | price |
|---|---|---|---|
| 1 | 1 | 3 | 10.00 |
| 2 | 2 | 5 | 15.00 |
| 1 | 3 | 2 | 20.00 |
| 4 | 1 | 1 | 8.50 |
Example of the customers table:
| customer_id | customer_name | city |
|---|---|---|
| 1 | Laurence Lebihan | London |
| 2 | Diego Roel | Madrid |
Which of the following CREATE VIEW statements would accomplish this?