Received: from mailout03.sul.t-online.de (mailout03.sul.t-online.com [194.25.134.81]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5IKlsa81115 for ; Mon, 18 Jun 2001 16:47:55 -0400 (EDT) (envelope-from peter_e@gmx.net) Received: from fwd03.sul.t-online.de by mailout03.sul.t-online.de with smtp id 15C5w6-00030K-0J; Mon, 18 Jun 2001 22:47:50 +0200 Received: from peter.localdomain (520083510237-0001@[212.185.245.109]) by fmrl03.sul.t-online.com with esmtp id 15C5w2-1AGYtcC; Mon, 18 Jun 2001 22:47:46 +0200 Date: Mon, 18 Jun 2001 22:49:33 +0200 (CEST) From: Peter Eisentraut To: Svenne Krap cc: Subject: Re: Subselects, the Oracle way In-Reply-To: <3B2E6D28.17314.A02C932@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Sender: 520083510237-0001@t-dialin.net X-Archive-Number: 200106/274 X-Sequence-Number: 3537 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 I don't know what's supposed to be the "Oracle" way about this, but this particular query should work in PostgreSQL 7.1. -- Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter