select where in and order - Mailing list pgsql-general

From Tony Smith
Subject select where in and order
Date
Msg-id 20060310023231.84845.qmail@web52702.mail.yahoo.com
Whole thread Raw
In response to Re: Suse Linux 10.0  (Jerome Lyles <lylesj002@hawaii.rr.com>)
Responses Re: select where in and order  (Chris <dmagick@gmail.com>)
Re: select where in and order  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List 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 by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Run PostgreSQL with Administrator account in Windows
Next
From: Michael Louie Loria
Date:
Subject: Re: Run PostgreSQL with Administrator account in Windows