select rmx.* , row_number() over( partition by rmx.reagent_num order by rmx.reagent_num ) r from reag_check_mx rmx where rmx.reagent_num is not null ;
select rmx.* , row_number() over( partition by rmx.reagent_num order by rmx.reagent_num ) r from reag_check_mx rmx where rmx.reagent_num is not null ;