Simply append...

Поиск
Список
Период
Сортировка
От Ed
Тема Simply append...
Дата
Msg-id 001f01bfdb8f$ec4c68a0$b48c29d1@citenet.net
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Ryan Kirkpatrick
Дата:
Сообщение: Sequences do not obey transactions...
Следующее
От: Francisco Hernandez
Дата:
Сообщение: eliminating duplicates in results..