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

43 lines
464 B
MySQL
Raw Normal View History

2020-01-18 02:47:55 +00:00
SELECT id
FROM
(
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
(
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
(
SELECT NULL AS x
) js1
2020-01-18 02:47:55 +00:00
FULL OUTER JOIN
(
SELECT NULL AS x
) js2 USING (x);