pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wei Weng <wweng@kencast.com>
To: pgsql-sql@postgresql.org
Subject: simulate union in subselect
Date: Wed, 25 Apr 2001 18:42:20 -0400
Message-ID: <9c7g2a$2f4o$1@news.tht.net> (raw)

I know this is not do-able, but is there any way to simulate the
following in Postgresql 7.1?

select id from
(select id, recv_date as date from table1 
union
select id, send_date as date from table2) AS subtable
order by date;

Thanks a lot 

Wei



view thread (3+ messages)  latest in thread

Message-ID: <9c7g2a$2f4o$1@news.tht.net>
Permalink:  ../9c7g2a$2f4o$1@news.tht.net/
Also on:    postgresql.org/message-id/9c7g2a$2f4o$1@news.tht.net

 · 

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: wweng@kencast.com
  Subject: Re: simulate union in subselect
  In-Reply-To: <9c7g2a$2f4o$1@news.tht.net>

* 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