SELECT name FROM test ORDER BY id DESC LIMIT 10;

Take care,
Jason


--- Wei Weng <[EMAIL PROTECTED]> wrote:
> Suppose I have a table 
> 
> create table test
> (
>         id integer,
>         name text
> );
> 
> And I want to get the names of the largest 10 "id"s.
> How can I do that in 
> sql?
> 
> Thanks!
> 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the
> unregister command
>     (send "unregister YourEmailAddressHere" to
[EMAIL PROTECTED])


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly

Reply via email to