From: Yudie <yudie@axiontech.com>
To: pgsql-sql@postgresql.org
Subject: Re: How to re-sort a sorted query?
Date: Wed, 27 Oct 2004 10:30:15 -0500
Message-ID: <003001c4bc39$dd0470b0$a101a8c0@home.axiontech.com> (raw)
References: <003001c4bb91$4c6647c0$a101a8c0@home.axiontech.com>
<1098822881.2414.42.camel@linda>
<13739.1098827021@sss.pgh.pa.us>
> select * from
> (select distinct on (storenumber), itemsku, storenumber,price
> from storeproduct where itemsku='10001'
> order by storenumber, price) ss
> order by price;
>
> regards, tom lane
Thanks tom, this is working. I never thought it could be done like this.
yudie
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: yudie@axiontech.com
Subject: Re: How to re-sort a sorted query?
In-Reply-To: <003001c4bc39$dd0470b0$a101a8c0@home.axiontech.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox