QuestionQ53

VerifiedAnalyzing Queries

A data analyst needs to count the customers in each region and has written this query:

Question Image

If the query contains a mistake, which option describes it?

Explanation

When a query selects region together with COUNT(*) to return a count for each region, it must include GROUP BY region. Without that clause, the query does not define the per-region grouping required for the aggregate.

Community Discussion

No comments yet. Be the first to start the discussion!