Re: order by

Поиск
Список
Период
Сортировка
От Mathieu Arnold
Тема Re: order by
Дата
Msg-id 1714544074.1021385050@andromede.reaumur.absolight.net
обсуждение исходный текст
Ответ на order by  (Mathieu Arnold <mat@mat.cc>)
Список 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 по дате отправления:

Предыдущее
От: "Marin Dimitrov"
Дата:
Сообщение: Re: order by
Следующее
От: "Joel Burton"
Дата:
Сообщение: Re: order by