The mistake in the query is that it is missing a GROUP BY clause. When using an aggregate function like COUNT(*) in conjunction with non-aggregated columns like region, you need to include a GROUP BY clause to specify how the data should be grouped for the aggregation.
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
MrWood47
10 months ago