469,081 Members | 1,792 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,081 developers. It's quick & easy.

Sorting with LIMIT

Suppose I have a table with a field of integer values, how can I select the
(x) largest values and return them so the largest value is at the bottom of
the table? A simple select with limit doesn't allow this. I don't want to
perform more than 1 query, so methods that test the number of rows returned
(y) and then do limit (y-x), -1 aren't the answer.
Jul 19 '05 #1
0 1275

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by mail | last post: by
3 posts views Thread by praba kar | last post: by
reply views Thread by Alex Kovach | last post: by
19 posts views Thread by Owen T. Soroke | last post: by
2 posts views Thread by Philippe Signoret | last post: by
reply views Thread by Yashesh Bhatia | last post: by
6 posts views Thread by =?Utf-8?B?RGFu?= | last post: by
4 posts views Thread by pradeepjain | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.