ClickHouse/dbms/tests/queries/0_stateless/01067_join_null.sql
Artem Zuikov 912ec60e7e
Enable joined_subquery_requires_alias by default (#9274)
enable joined_subquery_requires_alias by default
2020-02-26 16:11:06 +03:00

43 lines
464 B
SQL

SELECT id
FROM
(
SELECT 1 AS id
UNION ALL
SELECT NULL
UNION ALL
SELECT NULL
) js1
ALL FULL OUTER JOIN
(
SELECT 1 AS id
UNION ALL
SELECT NULL
UNION ALL
SELECT NULL
) js2 USING (id)
ORDER BY id;
SELECT '---';
SELECT *
FROM
(
SELECT NULL AS x
) js1
INNER JOIN
(
SELECT NULL AS x
) js2 USING (x);
SELECT '---';
SELECT *
FROM
(
SELECT NULL AS x
) js1
FULL OUTER JOIN
(
SELECT NULL AS x
) js2 USING (x);