and then i assume you want to sort them back into ASC order for display purposes, right?
okay, two comments
1. not sure if can do this with a subquery, seems i recall you can't use LIMIT, but in any case, since you know you are returning exackly 20 rows, you can just reverse display them (in coldfusion you process the query structure backwards, i assume it's equally trivial in other scripting languages like php)
2. it's the last 20, for cryin' out pete's sake, the user will instantly recognize this fact if presented with data in descending sequence, especially if accompanied by a heading like "last 20 thingies", in which case this option -- the ever-loved "do nothing" option which should be included in every situation analysis -- is the best option
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.