Stupid me, I didn't read the text properly as the following text explains:

        Find number, dealer, and price of the most expensive article.
        
        In ANSI SQL this is easily done with a sub-query: 
        
        SELECT article, dealer, price
        FROM   shop
        WHERE  price=(SELECT MAX(price) FROM shop)

        In MySQL (which does not yet have sub-selects), just do it in two steps:

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

------------------------------------------
Phone:       (+354) 4615501
Mobile:      (+354) 8960376
Fax:         (+354) 4615503
E-mail:      [EMAIL PROTECTED]
Homepage:    www.sed.is <- New Homepage!
------------------------------------------



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