firstly I need to check the serial no column and find the duplicates,once the duplicate are found then second conditions has to applied on the rank column and which is the least rank & i need to update the status with rank 1 in least rank and other duplicate column has be updated with rank 2

 
     
    