Question from the SQL - Fundamentals test

Write a SQL query to count the number of orders placed by customer 1001.

Hard

Given the following 'orders' table:

| order_id | customer_id | order_date |
|----------|-------------|------------|
| 1        | 1001        | 2022-01-10 |
| 2        | 1002        | 2022-01-11 |
| 3        | 1001        | 2022-01-12 |

Which SQL query/queries count(s) the number of orders placed by customer 1001?

Author: AaronStatus: Published(Update)Question passed 37 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!