ClickHouse/dbms/tests/queries/1_stateful/00007_uniq.sql
2019-01-16 15:07:26 +03:00

2 lines
139 B
SQL

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