Re: [SQL] Which SQL query makes it possible to optain the 3 greatest values of an interger list ?

2001-09-15 Thread Wei Weng
I would use SELECT id FROM table ORDER BY id LIMIT 0, 3; in order to get the top 3 results. The key is Limit keyword. == Wei Weng Network Software Engineer KenCast Inc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Yoann Sent:

[SQL] Which SQL query makes it possible to optain the 3 greatest values of an interger list ?

2001-09-14 Thread Yoann
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