order by question - Mailing list pgsql-admin

From Tony Liao
Subject order by question
Date
Msg-id 8f750b7c0906190250p854581en365005b49019912d@mail.gmail.com
Whole thread Raw
Responses Re: order by question  (Tino Schwarze <postgresql@tisc.de>)
Re: order by question  (Sergio Gabriel Rodriguez <sgrodriguez@gmail.com>)
Re: order by question  (Kenny W Drobnack <kenny.w.drobnack@jpmchase.com>)
Re: order by question  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-admin
Hi,All
       for example,I have a query as this 
         select id,product_id from table_name where product_id in (6,3,4,10,7) order by .....
       the results I want to get as bellow:
id................product_id......................
33...............6...................................
40...............6..................................
12...............3....................................
25...............4.................................
10...............4................................
17...............10................................. 
43................7...................................

          any Idea? thanks

--
Tony Liao

pgsql-admin by date:

Previous
From: Marcin Stępnicki
Date:
Subject: Re: ruby connect
Next
From: Tino Schwarze
Date:
Subject: Re: order by question