Select * from singlemalts order by rating limit 1;

Now, you have to share your samples with the rest of us!  :)

Cal
http://www.calevans.com
 

-----Original Message-----
From: Richard Reina [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 21, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: SELECT FROM TABLE WHERE ?


I've tried the manual (and the Oreily MySQL book) and played around with
MAX() and GREATEST() but could not figure it out.


|ID     |NAME           |RATING |
|213    |McCallen 12    |   9   |
|214    |Glenmorangie   |   8   |
|225    |Glenlevit      |   7   |

How do I select the one with highest rating without knowing what the
highest rating is.

SELECT ID, NAME, RATING 
FROM SINGLEMALTS
WHERE RATING ????

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



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