alf Of Yoann
> Sent: Wednesday, September 12, 2001 4:41 AM
> To: [EMAIL PROTECTED]
> Subject: [SQL] Which SQL query makes it possible to optain the 3
> greatest values of an interger list ?
>
>
> OO( Sql Problem )Oo.
>
> That is to say a table of 5 inputs of 1 integer
On 12 Sep 2001, Yoann wrote:
> OO( Sql Problem )Oo.
>
> That is to say a table of 5 inputs of 1 integer field :
>
>Table = { (1); (12); (3); (9); (4) }
Am I right that what you have is this?
CREATE TABLE T (v integer);
INSERT INTO T (v) VALUES (1);
INSERT INTO T (v) VALUES (12);
INSERT INTO
OO( Sql Problem )Oo.
That is to say a table of 5 inputs of 1 integer field :
Table = { (1); (12); (3); (9); (4) }
We want to obtain a result of 1 input of 3 fields,
corresponding to the 3 greatest values of Table,
by descending order :
Result = { (12; 9; 4) }
=> Which SQL query ma