Simply append...

From: "Ed" <ed(at)jetumele(dot)com>
To: "pgsql sql" <pgsql-sql(at)postgresql(dot)org>
Subject: Simply append...
Date: 2000-06-21 14:49:38
Message-ID: 001f01bfdb8f$ec4c68a0$b48c29d1@citenet.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)jetumele(dot)com

Browse pgsql-sql by date

  From Date Subject
Next Message Francisco Hernandez 2000-06-21 23:53:41 eliminating duplicates in results..
Previous Message Haroldo Stenger 2000-06-21 05:22:46 Re: Sequences do not obey transactions...