aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/join/pullup_left_semi.sql
blob: feeec671b6f7855060e5d2841818dfa6979aa0dc (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
left semi join (select key || subkey as subkey, key, 1 as value from Input2) as b on a.key = b.key
select a.key as akey, a.subkey
order by akey;