ClickHouse/dbms/tests/queries/0_stateless/00098_8_union_all.sql
2016-06-07 11:23:15 +03:00

2 lines
140 B
SQL

SELECT DomainID FROM (SELECT DISTINCT 1 AS DomainID, 'abc' AS Domain UNION ALL SELECT 2 AS DomainID, 'def' AS Domain) ORDER BY DomainID ASC