All pastes #143655 Raw Edit

sqlite

public text v1 · immutable
#143655 ·published 2006-08-22 03:36 UTC
rendered paste body
create table a (x integer, y integer);
create table b (x integer, y integer);

select foo2.x from (
    select foo1.x, foo1.y from (
        select a.x as x, b.y as y from a join b on a.x = b.x
    ) as foo1
) as foo2 ;