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

2 lines
125 B
SQL

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