How do I type query with maximum value in specific column?
I can select max price but not whole row with max price.
3 replies to this topic
#1
Posted 08 May 2011 - 11:22 AM
|
|
|
#2
Posted 08 May 2011 - 12:18 PM
You will have to specify each field you want to return, and use the group by clause for those fields as well.
#3
Posted 08 May 2011 - 12:31 PM
SELECT * FROM cars WHERE price=max?
#4
Posted 08 May 2011 - 01:11 PM
Ah:
select * from cars where price = (select max(price) from cars)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









