HiI have a data set like thisAccountNbr RollNumber1 5001 2 4002 3 6003 700
i need to write a update statement that would make the dataset look like below.AccountNbr RollNumber1 5001 5002 4002 4003 6003 700
one way of doing this would be analytics something likeselect *from (select *, row_number(),over(partition by AccountNbr order by rollnumber desc) rn from my_table )where rn>1
and then base my update on that sql .However the above sql would produce a result set likeAccountNbr RollNumber Rn1 500 22 400 23 600 2
i dont want AccountNbr 3 to appear in the result set any idea how i can achieve this ?regardsHrishy