blob: 849dd6fcc2284330ffbd6447f6ab8a97b3dd410a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
--!syntax_pg
select * from (
(select 1 as fooo, 1 as x
union all
select 1 as fooo, 2 as y) c
join
(select 1 as fooo) d
using(fooo)),(
(select 2 as foo) a
join
(select 2 as bar) b
on(a.foo = b.bar)) order by x
|