ClickHouse/dbms/tests/queries/0_stateless/00254_tuple_extremes.sql
2019-06-25 19:41:06 +03:00

9 lines
315 B
SQL

drop table if exists numbers_10;
create table numbers_10 (number UInt64) engine = MergeTree order by number;
insert into numbers_10 select number from system.numbers limit 10;
SELECT number, (number, toDate('2015-01-01') + number) FROM numbers_10 LIMIT 10 SETTINGS extremes = 1;
drop table if exists numbers_10;