ClickHouse/tests/queries/1_stateful/00033_aggregate_key_string.sql

2 lines
96 B
MySQL
Raw Normal View History

SELECT SearchPhrase AS k1, count() AS c FROM test.hits GROUP BY k1 ORDER BY c DESC, k1 LIMIT 10