id driver_id issue_type 1 101 L1 2 102 L2 3 102 L3 4 104 L1 5 102 L2
Мой код:
select * ,dense_rank() over(order by driver_id,issue_type) as issue_type1 from ride