2021-05-20 13:47:09 +00:00
|
|
|
SELECT
|
|
|
|
a,
|
|
|
|
b,
|
|
|
|
c
|
2021-05-22 16:23:56 +00:00
|
|
|
FROM
|
2021-05-20 13:47:09 +00:00
|
|
|
(
|
|
|
|
SELECT *
|
2021-05-22 16:23:56 +00:00
|
|
|
FROM
|
2021-05-20 13:47:09 +00:00
|
|
|
(
|
|
|
|
SELECT
|
|
|
|
number + 1 AS a,
|
|
|
|
number + 11 AS b
|
|
|
|
FROM numbers(2)
|
|
|
|
) AS t1
|
2021-05-22 16:23:56 +00:00
|
|
|
FULL OUTER JOIN
|
2021-05-20 13:47:09 +00:00
|
|
|
(
|
|
|
|
SELECT
|
|
|
|
number + 2 AS a,
|
|
|
|
number + 22 AS c
|
|
|
|
FROM numbers(2)
|
|
|
|
) AS t2 USING (a)
|
|
|
|
ORDER BY a ASC
|
|
|
|
SETTINGS max_block_size = 666, join_use_nulls = 0
|
|
|
|
) AS view_no_nulls
|
2021-05-13 14:21:55 +00:00
|
|
|
1 11 0
|
|
|
|
2 12 22
|
|
|
|
3 0 23
|
2021-05-14 10:43:17 +00:00
|
|
|
1 11 0
|
|
|
|
2 12 22
|
|
|
|
3 0 23
|
|
|
|
1 11 \N
|
|
|
|
2 12 22
|
|
|
|
3 \N 23
|
|
|
|
1 11 \N
|
|
|
|
2 12 22
|
|
|
|
3 \N 23
|
|
|
|
1 11 0
|
|
|
|
2 12 22
|
|
|
|
3 0 23
|
|
|
|
1 11 0
|
|
|
|
2 12 22
|
|
|
|
3 0 23
|
|
|
|
1 11 \N
|
|
|
|
2 12 22
|
|
|
|
3 \N 23
|
|
|
|
1 11 \N
|
|
|
|
2 12 22
|
|
|
|
3 \N 23
|