I have a table as follows
Cust Month Price
A 1 98.3
A 2 93.2
A 3 96.9
A 4 92.1
B 1 12.4
B 2 45.6
B 3 97.8
C 1 78.3
C 2 78.5
C 3 97.2
C 4 98.8
C 5 56.7
I want to return the only the records that has the maximum month for each cust. The result will be as follows
A 4 92.1
B 3 97.8
C 5 56.7
How do I write a querry in SQL for an Access database?
Cust Month Price
A 1 98.3
A 2 93.2
A 3 96.9
A 4 92.1
B 1 12.4
B 2 45.6
B 3 97.8
C 1 78.3
C 2 78.5
C 3 97.2
C 4 98.8
C 5 56.7
I want to return the only the records that has the maximum month for each cust. The result will be as follows
A 4 92.1
B 3 97.8
C 5 56.7
How do I write a querry in SQL for an Access database?