ClickHouse/dbms/tests/queries/0_stateless/00371_union_all.sql

3 lines
156 B
MySQL
Raw Normal View History

2016-08-20 17:19:06 +00:00
select toUInt64(1) union all select countIf(n>0) from (select 2 as n);
select [1,2,3] AS q UNION ALL select groupArray(arrayJoin([4,5,6])) AS q ORDER BY q;