As a novice in (My)sql I encounter this problem: I would like to select from a table first the 39 records with the highest variable1 and order them on variable2. So I need something like a subselect and I can't figure out a way around it.
Ideally something like: select * from table1 order by var2 in (select * from table1 order by var1 limit 0,39); Best regards Hein --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php