mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 06:50:50 +00:00
6 lines
413 B
SQL
6 lines
413 B
SQL
DROP TABLE IF EXISTS test.grop_uniq_array_date;
|
|
CREATE TABLE test.grop_uniq_array_date (d Date, dt DateTime) ENGINE = Memory;
|
|
INSERT INTO test.grop_uniq_array_date VALUES (toDate('2016-12-16'), toDateTime('2016-12-16 12:00:00')) (toDate('2016-12-16'), toDateTime('2016-12-16 12:00:00'));
|
|
SELECT groupUniqArray(d), groupUniqArray(dt) FROM test.grop_uniq_array_date;
|
|
DROP TABLE IF EXISTS test.grop_uniq_array_date;
|