Re: order by - Mailing list pgsql-sql

From Mathieu Arnold
Subject Re: order by
Date
Msg-id 1714544074.1021385050@andromede.reaumur.absolight.net
Whole thread Raw
In response to order by  (Mathieu Arnold <mat@mat.cc>)
List pgsql-sql

--On mardi 14 mai 2002 13:49 +0200 Mathieu Arnold <mat@mat.cc> wrote:

> Hi
>
> I have :
>
> table a (int, varchar, int)
>
> 1 | one   | 1
> 2 | two   | 3
> 3 | three | 2
> 4 | four  | 3
> 5 | five  | 2
>
> And I would like to select it and sort it so that the 3rd field is first
> 2, then 1 and then 3. so that the result should be :

next time, I'll reread what I say, the order I want is :

3 | three | 2
5 | five  | 2
1 | one   | 1
2 | two   | 3
4 | four  | 3


-- 
Mathieu Arnold


pgsql-sql by date:

Previous
From: "Marin Dimitrov"
Date:
Subject: Re: order by
Next
From: "Joel Burton"
Date:
Subject: Re: order by