mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 09:28:27 +00:00
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:
parent
fa56f1da79
commit
50d984b935
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user