ClickHouse/tests/queries/1_stateful/00144_functions_of_aggregation_states.sql

2 lines
177 B
MySQL
Raw Normal View History

SELECT EventDate, finalizeAggregation(state), runningAccumulate(state) FROM (SELECT EventDate, uniqState(UserID) AS state FROM test.hits GROUP BY EventDate ORDER BY EventDate);