This commit is contained in:
Alexey Milovidov 2018-03-01 11:07:46 +03:00
parent a27d27ac94
commit 8197574e37
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,21 @@
0
0
1
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9

View File

@ -0,0 +1,4 @@
SELECT * FROM
(
SELECT x FROM (SELECT x, y, arrayJoin(z) FROM (SELECT number AS x, number + 1 AS y, [number % 2, number % 3] AS z FROM numbers(10)) UNION ALL SELECT 1, 2, 3)
) ORDER BY x;