Re: order by question - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: order by question
Date
Msg-id 20050309142611.GB32013@wolff.to
Whole thread Raw
In response to order by question  (Gary Stainburn <gary.stainburn@ringways.co.uk>)
List pgsql-sql
On Wed, Mar 09, 2005 at 12:41:55 +0000, Gary Stainburn <gary.stainburn@ringways.co.uk> wrote:
> Hi folks.
> 
> I seem to remember somewhere being shown how to bump specific rows to 
> the top of a list; something along the lines of:
> 
> select c_id as key, c_des as value from customers order by c_id = 7, 
> c_id = 160, value;
> 
> however, although the statement is accepted the two rows specified are 
> not bumped to the top of the list, but instead appear in their correct 
> position in the order by value part.

Are you sure? It looks like you are going to have them appear at the bottom
of the list doing the above. Remember that false sorts before true.


pgsql-sql by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: interval +variable
Next
From: Gary Stainburn
Date:
Subject: Re: order by question