Re: Order by question - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: Order by question
Date
Msg-id ggk9ut$to5$1@ger.gmane.org
Whole thread Raw
In response to Order by question  (Kevin Kempter <kevink@consistentstate.com>)
List pgsql-general
Kevin Kempter wrote on 26.11.2008 20:46:
> Hi All;
>
> I'm selecting 3 columns.  I want to order the results ascending by col1 and
> col2 and then descending by col3
>
> Whats the syntax for this?

ORDER BY col1 ASC, col2 ASC, col3 DESC

this is documented in the manual

pgsql-general by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: Order by question
Next
From: Karina Guardado
Date:
Subject: problems with special characters