ClickHouse/dbms/tests/queries/1_stateful/00073_uniq_array.sql
2018-12-30 01:13:23 +03:00

2 lines
179 B
SQL

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