select customer_id, row_number()over(partition by customer id order by date) as rn from table
How to get same rn when Item Id is the same?
Below did not work: #1 select customer_id, row_number()over(partition by customer id, Item Id order by date) as rn from table

