troubleshooting Question

Visual studio - find maximum dollar amount in a field for each year

Avatar of TinaSC
TinaSCFlag for United States of America asked on
DB Reporting Tools.NET Programming
9 Comments4 Solutions209 ViewsLast Modified:
I have a table in visual studio that lists nonprofit grant recipients for a number of years.

How can I automatically pull the largest grant for each year.  For example, my results would show Nonprofit2 with the amount for 2006 and Nonprofit5 with the amount for 2007.

I assume it's some kind of command with MAX, but I'm not sure how to write it.

Recipient           Amount        Year
Nonprofit1          $4,000         2006
Nonprofit2          $8,000         2006
Nonprofit3          $2,000         2006
Nonprofit4          $1,000         2007
Nonprofit5          $2,000         2007
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 4 Answers and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros