I have a table of below structure/data. I need to find out the Each sal_type with highest version numberĀ for each id (Expected Answer--> Rows marked in Red)
ID | Sal_Type | Version |
---|
1 | bonus | 1 |
1 | bonus | 2 |
1 | bonus | 3 |
1 | perk | 1 |
1 | perk | 2 |
2 | bonus | 1 |
2 | bonus | 2 |
2 | perk | 1 |
2 | perk | 2 |
2 | perk | 3 |
2 | perk | 4 |