Here is the data
ID  Month   Sal
1   1       70
2   1       10
3   1       30
1   2       60
2   2       90
3   2       50
1   3       80
2   3       40
3   3       20
How do I find what is the max salary for each ID and what is the respective month?
I tried using aggregate for the max salary but how to find the respective month for each ID when he got the max salary
 
     
    