aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/join/bush_in.sql
blob: af77ba34e3574088067c8a5249ea951afb3af530 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
PRAGMA DisableSimpleColumns;
USE plato;
select * from (
    SELECT i1.key AS Key, i1.value as Value, i2.value as Join
    FROM Roots AS i1
    INNER JOIN Leaves AS i2 ON i1.leaf = i2.key
    UNION ALL
    SELECT i1.key AS Key, i1.value as Value, i2.value as Join
    FROM Roots AS i1
    INNER JOIN Branches AS i2 ON i1.branch = i2.key
) order by Key, Value, Join;