View Single Post
  #3 (permalink)  
Old 08-26-2008, 10:55 AM
SandeshSegu SandeshSegu is offline
Junior Member
 
Join Date: Aug 2008
Location: Bangalore, INDIA
Posts: 6
SandeshSegu is on a distinguished road
Default ANY answer. Re: Using SQL Query, find minimun price of each brand.?

Quote:
Originally Posted by Charlie View Post
Hi, I need to construct a SQL query to find the minimun price of each brand in a table:
Table Example:
Code:
Brand      Price
BMW       $10,000
BWM       $ 20,000
HONDA   $12,000
HONDA   $22,000
TOYOTA  $30,000
TOYOTA  $44,000
Output of the Query Should be:
Code:
Brand         Price
BMW          $10,000
HONDA     $12,000
TOYOTA    $30,000
This might be easy, but i don't know, plz help. I need the SQL statement:

Select *
From table
Where ..
SELECT Brand, min(Price)
FROM TableName
Group BY Brand
__________________
Thanks
Sandesh S
http://sanssql.blogspot.com/
Reply With Quote