How to select product that have the maximum price of each category?
Posted
by
kimleng
on Stack Overflow
See other posts from Stack Overflow
or by kimleng
Published on 2012-09-11T09:12:08Z
Indexed on
2012/09/11
9:38 UTC
Read the original article
Hit count: 228
The below is my table that has the item such as:
ProductId ProductName Category Price
1 Tiger Beer $12.00
2 ABC Beer $13.99
3 Anchor Beer $9.00
4 Apolo Wine $10.88
5 Randonal Wine $18.90
6 Wisky Wine $30.19
7 Coca Beverage $2.00
8 Sting Beverage $5.00
9 Spy Beverage $4.00
10 Angkor Beer $12.88
And I suppose that I have only three category
in this table (I can have a lot of category
in this table). And I want to show the maximum product's price of each category
in this table.
© Stack Overflow or respective owner