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? Quote 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? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/177825-reverse-result/#findComment-938840 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.