jrflanne
Technical User
- May 9, 2005
- 4
Hi,
Newbie warning!
I have a table with three fields: caseID, custID, and pct_interest. I am looking for a way to find the maximum pct_interest for each caseID and then write caseID, the custID who has the maximum pct_interest and pct_interest for that caseID (GroupBy caseID).
caseID custID pct_interest
1 Joe 25
1 Bob 25
1 Bill 50
2 Sally 75
2 Debbie 25
My desired result:
caseID custID pct_interest
1 Bill 50
2 Sally 75
The problem (besides my total lack of Access experience)is if I GroupBy caseID and custID and Max pct_interest, the resulting table has all of the records in it. I understand why this is, but how the heck can I spit out the cust_ID who has the maximum pct_interest?
I'm sure there is a rather simple answer to this but I am thrashing a bit. Thanks for any assistance.
Jack
Newbie warning!
I have a table with three fields: caseID, custID, and pct_interest. I am looking for a way to find the maximum pct_interest for each caseID and then write caseID, the custID who has the maximum pct_interest and pct_interest for that caseID (GroupBy caseID).
caseID custID pct_interest
1 Joe 25
1 Bob 25
1 Bill 50
2 Sally 75
2 Debbie 25
My desired result:
caseID custID pct_interest
1 Bill 50
2 Sally 75
The problem (besides my total lack of Access experience)is if I GroupBy caseID and custID and Max pct_interest, the resulting table has all of the records in it. I understand why this is, but how the heck can I spit out the cust_ID who has the maximum pct_interest?
I'm sure there is a rather simple answer to this but I am thrashing a bit. Thanks for any assistance.
Jack