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

2 lines
124 B
SQL

SELECT RegionID, uniq(UserID) AS u FROM test.hits WHERE CounterID = 34 GROUP BY RegionID ORDER BY u DESC, RegionID LIMIT 10