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

2 lines
165 B
SQL

SELECT URL, EventDate, max(URL) FROM test.hits WHERE CounterID = 731962 AND UserID = 2651474201385397001 GROUP BY URL, EventDate, EventDate ORDER BY URL, EventDate;