Browse Source

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
Scott Kingsley Clark 10 years ago
parent
commit
50d984b935
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/reference/getting-started.asciidoc

+ 1 - 1
docs/reference/getting-started.asciidoc

@@ -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):