✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
customers and orders, with the following data:customers table:
| customer_id | customer_name | address | city |
|---|---|---|---|
| 1 | John Smith | 123 Main St. | Anytown |
| 2 | Jane Doe | 456 Oak St. | Other town |
| 3 | Bob Johnson | 789 Maple Ave. | Another town |
orders table:
| order_id | customer_id | order_date | total_amount |
|---|---|---|---|
| 1 | 1 | 2022-03-01 | 150.00 |
| 2 | 2 | 2022-03-02 | 75.00 |
| 3 | 1 | 2022-03-03 | 25.00 |
| 4 | 3 | 2022-03-04 | 50.00 |
Which of the following CREATE VIEW statements would create a vertical view that displays the customer name, order ID, and total amount for all orders?