ClickHouse/tests/queries/0_stateless/01067_join_null.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
461 B
MySQL
Raw Normal View History

2020-01-18 02:47:55 +00:00
SELECT id
FROM
2020-01-18 02:47:55 +00:00
(
SELECT 1 AS id
UNION ALL
SELECT NULL
UNION ALL
SELECT NULL
) js1
2020-01-18 02:47:55 +00:00
ALL FULL OUTER JOIN
(
SELECT 1 AS id
UNION ALL
SELECT NULL
UNION ALL
SELECT NULL
) js2 USING (id)
2020-01-18 02:47:55 +00:00
ORDER BY id;
SELECT '---';
SELECT *
FROM
2020-01-18 02:47:55 +00:00
(
SELECT NULL AS x
) js1
2020-01-18 02:47:55 +00:00
INNER JOIN
(
SELECT NULL AS x
) js2 USING (x);
2020-01-18 02:47:55 +00:00
SELECT '---';
SELECT *
FROM
2020-01-18 02:47:55 +00:00
(
SELECT NULL AS x
) js1
2020-01-18 02:47:55 +00:00
FULL OUTER JOIN
(
SELECT NULL AS x
) js2 USING (x);