bsamson Posted August 21, 2007 Share Posted August 21, 2007 Alright. I have searched and googled and cannot seem to find the answer. Perhaps I am not wording it right. But here's the issue. Table: stores Location1 25 Location2 10 Location3 15 How do I write a MySQL query to find the largest # (in this case is location1) Thanks for any assistance! Best Regards, Brian Link to comment https://forums.phpfreaks.com/topic/66045-selecting-the-mysql-field-w-the-biggest/ Share on other sites More sharing options...
lemmin Posted August 21, 2007 Share Posted August 21, 2007 "SELECT location FROM stores ORDER BY number DESC LIMIT 1" OR "SELECT MAX(location) as maxloc FROM stores" Link to comment https://forums.phpfreaks.com/topic/66045-selecting-the-mysql-field-w-the-biggest/#findComment-330291 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.