Re: Order by question - Mailing list pgsql-general

From Andreas Kretschmer
Subject Re: Order by question
Date
Msg-id 20081126200037.GA10724@tux
Whole thread Raw
In response to Order by question  (Kevin Kempter <kevink@consistentstate.com>)
List pgsql-general
Kevin Kempter <kevink@consistentstate.com> schrieb:

> 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;


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

pgsql-general by date:

Previous
From: "Grzegorz Jaśkiewicz"
Date:
Subject: Re: Order by question
Next
From: Thomas Kellerer
Date:
Subject: Re: Order by question