Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5IKFha68299 for ; Mon, 18 Jun 2001 16:15:44 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f5IKFQ308297; Mon, 18 Jun 2001 16:15:26 -0400 (EDT) To: svenne@krap.dk cc: pgsql-sql@postgresql.org Subject: Re: Subselects, the Oracle way In-reply-to: <3B2E6D28.17314.A02C932@localhost> References: <3B2E6D28.17314.A02C932@localhost> Comments: In-reply-to "Svenne Krap" message dated "Mon, 18 Jun 2001 21:05:44 +0200" Date: Mon, 18 Jun 2001 16:15:26 -0400 Message-ID: <8294.992895326@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200106/273 X-Sequence-Number: 3536 "Svenne Krap" writes: > Is there any way to mimic the oracle way of subselect, especially > constructs like > select * from (select col1 as x, col2, col6 from t1 union select col2 > as x, col6, col2 from t2) y order by y.x That should work fine in 7.1 ... regards, tom lane