mrchonginhk
Well-known Member
- Joined
- Dec 3, 2004
- Messages
- 679
I have a table1 like this
Country/Product/US$
===================
UK/A/200
UK/B/300
UK/C/100
US/A/200
US/B/100
US/C/500
I want a SQL to select the max sales for each country with associated product. Desired output is:-
Country/Product/US$
===================
UK/B/300
US/C/500
What should be the SQL for this ? Thanks
Country/Product/US$
===================
UK/A/200
UK/B/300
UK/C/100
US/A/200
US/B/100
US/C/500
I want a SQL to select the max sales for each country with associated product. Desired output is:-
Country/Product/US$
===================
UK/B/300
US/C/500
What should be the SQL for this ? Thanks