pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Svenne Krap <svenne@krap.dk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Subselects, the Oracle way
Date: Mon, 18 Jun 2001 22:49:33 +0200 (CEST)
Message-ID: <Pine.LNX.4.30.0106182248240.898-100000@peter.localdomain> (raw)
In-Reply-To: <3B2E6D28.17314.A02C932@localhost>

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




view thread (4+ messages)

Message-ID: <Pine.LNX.4.30.0106182248240.898-100000@peter.localdomain>
Permalink:  ../Pine.LNX.4.30.0106182248240.898-100000@peter.localdomain/
Also on:    postgresql.org/message-id/Pine.LNX.4.30.0106182248240.898-100000@peter.localdomain

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: peter_e@gmx.net, svenne@krap.dk
  Subject: Re: Subselects, the Oracle way
  In-Reply-To: <Pine.LNX.4.30.0106182248240.898-100000@peter.localdomain>
  References: <3B2E6D28.17314.A02C932@localhost> <Pine.LNX.4.30.0106182248240.898-100000@peter.localdomain>

* 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