I have this data on SQL Server
emp_id date seq
1 2020-10-01 1
1 2020-10-02 2
1 2020-10-05 1
1 2020-10-06 2
2 2020-10-01 1
2 2020-10-02 2
2 2020-10-03 3
I want to transform the data to max row for every sequence like this:
emp_id date seq
1 2020-10-02 2
1 2020-10-06 2
2 2020-10-03 3
I tried using max(seq) but the return only the max sequence for every employee, not for every sequence