aboutsummaryrefslogtreecommitdiffstats
path: root/ydb/library/yql/tests/sql/suites/join/pullup_exclusion.sql
blob: b865107bbf694d8134869ee5ae97c6566f86eb69 (plain) (blame)
1
2
3
4
5
6
7
PRAGMA DisableSimpleColumns;
use plato;

from (select key, subkey || key as subkey, value from Input1) as a
exclusion join (select key || subkey as subkey, key, 1 as value from Input2) as b on a.key = b.key
select a.key as akey, b.key as bkey, a.subkey, b.subkey, b.value
order by akey;