The Little Guy Posted October 15, 2009 Share Posted October 15, 2009 I have this query: SELECT * FROM mp3 ORDER BY playCount DESC LIMIT 100 I need to select those, then reverse the selected ones, how can I do that? Link to comment https://forums.phpfreaks.com/topic/177825-reverse-result/ Share on other sites More sharing options...
The Little Guy Posted October 15, 2009 Author Share Posted October 15, 2009 I did come up with this: SELECT * FROM ( SELECT * FROM mp3 WHERE `status` = 2 AND `artist` != '' AND `song` != '' ORDER BY playCount DESC LIMIT 100 ) as result ORDER BY playCount LIMIT 5 is there a better solution? Link to comment https://forums.phpfreaks.com/topic/177825-reverse-result/#findComment-937674 Share on other sites More sharing options...
fenway Posted October 17, 2009 Share Posted October 17, 2009 No, not really. Link to comment https://forums.phpfreaks.com/topic/177825-reverse-result/#findComment-938840 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.