[EMAIL PROTECTED] wrote:
> 
> As there is no TOP operator nor nested selects in MySQL, I wonder if there
> still exists some clever way to make"top ten" type of a query , i.e. to
> select ten best selling products or ten highest mountains for example.

SELECT name, height FROM mountain ORDER BY height desc LIMIT 10;

-- 
John Klein, Database Applications Developer |  Omnia Mutantur,
Systems Group - Harvard Law School          |  Nihil Interit

---------------------------------------------------------------------
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

Reply via email to