Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 861CE475D0A for ; Tue, 14 May 2002 08:02:19 -0400 (EDT) Received: from aragorn.reaumur.absolight.net (ATuileries-113-2-1-180.abo.wanadoo.fr [80.11.216.180]) by postgresql.org (Postfix) with ESMTP id 51328475C4F for ; Tue, 14 May 2002 08:02:18 -0400 (EDT) Received: from andromede.reaumur.absolight.net (andromede.reaumur.absolight.net [212.43.217.61]) by aragorn.reaumur.absolight.net (Postfix) with ESMTP id 97843D70E for ; Tue, 14 May 2002 14:02:20 +0200 (CEST) Date: Tue, 14 May 2002 14:04:10 +0200 From: Mathieu Arnold To: pgsql-sql@postgresql.org Subject: Re: order by Message-ID: <1714544074.1021385050@andromede.reaumur.absolight.net> In-Reply-To: <1713675304.1021384181@andromede.reaumur.absolight.net> References: <1713675304.1021384181@andromede.reaumur.absolight.net> X-Mailer: Mulberry/2.2.1 (Win32) X-wazaaa: True, true MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Archive-Number: 200205/131 X-Sequence-Number: 7767 --On mardi 14 mai 2002 13:49 +0200 Mathieu Arnold 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