mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
4 lines
233 B
SQL
4 lines
233 B
SQL
SET allow_deprecated_error_prone_window_functions = 1;
|
|
|
|
SELECT EventDate, finalizeAggregation(state), runningAccumulate(state) FROM (SELECT EventDate, uniqState(UserID) AS state FROM test.hits GROUP BY EventDate ORDER BY EventDate);
|