Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql select using Max
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Sql select using Max
Miscellaneous
Thread ID:
01080379
Message ID:
01080379
Views:
65
I have a table similar to following:
Country City Sales
USA NY 100
USA SF 500
USA BO 200
UK LO 300
UK BE 700
UK MA 400
and I want to select out the top city in each country based on sales
so the result-set from the above should be:
USA SF 500
UK BE 700

Can this be done using one SQL statement ?

Regards,
Gerard
Next
Reply
Map
View

Click here to load this message in the networking platform