aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/pg/select_join_right_equi.sql
blob: 027ffc83d839aafbb6c66e0c3a739e4c484e1120 (plain) (blame)
1
2
3
4
5
6
7
8
--!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 = b.u;

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 = b.u and b.v = a.y;