Re: SQL Order Question - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: SQL Order Question
Date
Msg-id 20060504201951.GA25362@wolff.to
Whole thread Raw
In response to Re: SQL Order Question  (<operationsengineer1@yahoo.com>)
List pgsql-novice
On Thu, May 04, 2006 at 13:11:51 -0700,
  operationsengineer1@yahoo.com wrote:
>
> almost, but not quite.  if i use an order by, it
> orders the entire output, not just the results of the
> 2nd select - so i'm back where i started.  that is,
> unless i'mmissing a piece to this puzzle.

You need to order by column <> 'BTS', column converted to a number
Doing the column to a number part is a bit tricky, but can be done
with case as I mentioned previously.

pgsql-novice by date:

Previous
From:
Date:
Subject: Re: SQL Order Question
Next
From: Bruno Wolff III
Date:
Subject: Re: SELECT FOR UPDATE - release lock?