ClickHouse/dbms/tests/queries/1_stateful/00032_aggregate_key64.sql
2018-08-07 20:08:51 +03:00

2 lines
98 B
SQL

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