aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/pg/select_join_right_one.sql
blob: 073b28e3345a3db82d9dcae1d37319452e6e2d46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--!syntax_pg
select * from (values (1,2),(3,4)) as a(x,y)
right join (values (1,2),(2,5)) as b(u,v)
on a.x = 1;

select * from (values (1,2),(3,4)) as a(x,y)
right join (values (1,2),(2,5)) as b(u,v)
on a.x = 0;

select * from (values (1,2),(3,4)) as a(x,y)
right join (values (1,2),(2,5)) as b(u,v)
on b.u = 1;

select * from (values (1,2),(3,4)) as a(x,y)
right join (values (1,2),(2,5)) as b(u,v)
on b.u = 0;