pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Svenne Krap <svenne@krap.dk>
To: pgsql-sql@postgresql.org
Subject: Subselects, the Oracle way
Date: Mon, 18 Jun 2001 21:05:44 +0200
Message-ID: <3B2E6D28.17314.A02C932@localhost> (raw)

Hi,

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 am aware of the fact, that it is possible to accomplish through the 
use of tempoary tables, but would rather not use them. 

Thanks in advance

Svenne
--
svenne@krap.dk
http://www.krap.dk
ICQ 5434480
PGP-key http://keys.pgp.dk:11371/pks/lookup?op=get&search=0xDF484022
PGP @ http://www.pgp.com / http://www.phpi.com



view thread (4+ messages)  latest in thread

Message-ID: <3B2E6D28.17314.A02C932@localhost>
Permalink:  ../3B2E6D28.17314.A02C932@localhost/
Also on:    postgresql.org/message-id/3B2E6D28.17314.A02C932@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: svenne@krap.dk
  Subject: Re: Subselects, the Oracle way
  In-Reply-To: <3B2E6D28.17314.A02C932@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox