Simply append... - Mailing list pgsql-sql

From Ed
Subject Simply append...
Date
Msg-id 001f01bfdb8f$ec4c68a0$b48c29d1@citenet.net
Whole thread Raw
List 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@jetumele.com




pgsql-sql by date:

Previous
From: Ryan Kirkpatrick
Date:
Subject: Sequences do not obey transactions...
Next
From: Francisco Hernandez
Date:
Subject: eliminating duplicates in results..