SELECT state, COUNT(*) for clarity

Adding state to the SQL syntax to make it more clear, given that the buckets returned include the values of state AND count for each.

Closes #13597
This commit is contained in:
Scott Kingsley Clark 2015-09-15 19:07:50 -05:00 committed by Clinton Gormley
parent fa56f1da79
commit 50d984b935
1 changed files with 1 additions and 1 deletions

View File

@ -915,7 +915,7 @@ In SQL, the above aggregation is similar in concept to:
[source,sh]
--------------------------------------------------
SELECT COUNT(*) from bank GROUP BY state ORDER BY COUNT(*) DESC
SELECT state, COUNT(*) FROM bank GROUP BY state ORDER BY COUNT(*) DESC
--------------------------------------------------
And the response (partially shown):