in reply to Re^2: (OT) MySQL query to limit and sort
in thread (OT) MySQL query to limit and sort
SELECT id, total FROM some_table WHERE id > (SELECT MAX(id) FROM some_table) - 10 ORDER BY total DESC
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: (OT) MySQL query to limit and sort
by rhesa (Vicar) on Feb 03, 2006 at 23:01 UTC |