By using Sort stage we can achieve this scenario:
1)Sort the data in Descending order 2)remove duplicates stage, 3)set option as first occurrence of the records.
Then we will get max salary record first.
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!