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

2 lines
178 B
SQL

SELECT EventDate, uniqExact(UserID), length(groupUniqArray(UserID)), arrayUniq(groupArray(UserID)) FROM test.hits WHERE CounterID = 731962 GROUP BY EventDate ORDER BY EventDate;