Re: order by <something wierd>

From: Mathieu Arnold <mat(at)mat(dot)cc>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: order by <something wierd>
Date: 2002-05-14 12:04:10
Message-ID: 1714544074.1021385050@andromede.reaumur.absolight.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

--On mardi 14 mai 2002 13:49 +0200 Mathieu Arnold <mat(at)mat(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Joel Burton 2002-05-14 12:05:08 Re: order by <something wierd>
Previous Message Marin Dimitrov 2002-05-14 12:01:55 Re: order by <something wierd>