Re: Subselects, the Oracle way

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Svenne Krap <svenne(at)krap(dot)dk>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Subselects, the Oracle way
Date: 2001-06-18 20:49:33
Message-ID: Pine.LNX.4.30.0106182248240.898-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Alla 2001-06-18 20:53:16 Re: How to build a TRIGGER in POSTGERSQL
Previous Message Stef Telford 2001-06-18 20:43:16 Referential Integrity Question (Delete/Insert during Transaction)