A data analyst has been asked to count the number of customers in each region and has written the following query:
If there is a mistake in the query, which of the following describes the mistake?
Select an option, then click Submit answer.
-
○
The query is using count('). which will count all the customers in the customers table, no matter the region.
-
○
The query is missing a GROUP BY region clause.
-
○
The query is using ORDER BY. which is not allowed in an aggregation.
-
○
There are no mistakes in the query.
-
○
The query is selecting region but region should only occur in the ORDER BY clause.