in reply to (OT) MySQL query to limit and sort
I think doing a simple select id, Total from bar order by id desc, Total desc limit 10; won't work since sorting by id is already exhaustive.select id, Total from ( select id, Total from bar order by id desc limit 10 ) baz order by Total desc;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: (OT) MySQL query to limit and sort
by Anonymous Monk on Feb 03, 2006 at 19:52 UTC | |
by rhesa (Vicar) on Feb 03, 2006 at 20:13 UTC | |
by Anonymous Monk on Feb 04, 2006 at 05:24 UTC | |
by rhesa (Vicar) on Feb 06, 2006 at 01:31 UTC |