ClickHouse/tests/queries/0_stateless/01926_union_all_schmak.sql

9 lines
179 B
MySQL
Raw Normal View History

2021-06-29 20:15:03 +00:00
SELECT * FROM (
SELECT 1 AS a, 2 AS b FROM system.one
JOIN system.one USING dummy
UNION ALL
SELECT 3 AS a, 4 AS b FROM system.one
)
WHERE a != 10
ORDER BY a, b;