From: Ed <ed@jetumele.com>
To: pgsql sql <pgsql-sql@postgresql.org>
Subject: Simply append...
Date: Wed, 21 Jun 2000 10:49:38 -0400
Message-ID: <001f01bfdb8f$ec4c68a0$b48c29d1@citenet.net> (raw)
Hi,
I would like to append 2 simple query's result but they are ordered
completly different like :
select * from foo order by col1 asc
union
select * from foo2 order by col2 desc
how could I do this? When I use union I can't use order by clause. Is
there a way to tell "simply append bot results in given order?"
thanks
Frédéric Boucher
Ed@jetumele.com
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: ed@jetumele.com
Subject: Re: Simply append...
In-Reply-To: <001f01bfdb8f$ec4c68a0$b48c29d1@citenet.net>
References: <001f01bfdb8f$ec4c68a0$b48c29d1@citenet.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