ClickHouse/dbms/tests/queries/1_stateful/00007_uniq.sql

2 lines
124 B
MySQL
Raw Normal View History

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