select where in and order

Поиск
Список
Период
Сортировка
От Tony Smith
Тема select where in and order
Дата
Msg-id 20060310023231.84845.qmail@web52702.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: Suse Linux 10.0  (Jerome Lyles <lylesj002@hawaii.rr.com>)
Ответы Re: select where in and order  (Chris <dmagick@gmail.com>)
Re: select where in and order  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-general
I have two tables action and group:

action
------------------------
id,
name

group:
------------------------
action_id
rank

I what to select from action table by order by the
rank in the group table.

If I use

select * from action where id in (select action_id
from group order by rank)

The action may not be ordered by rank. How can I do
it?

Thanks,

qq



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

В списке pgsql-general по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Run PostgreSQL with Administrator account in Windows
Следующее
От: Michael Louie Loria
Дата:
Сообщение: Re: Run PostgreSQL with Administrator account in Windows