I have a salary table with this column
EMPLOYEE_NAME SALARY
------------------------
ANNA 113750
MARRY 124300
BELLA 105100
<
Divide the salary by the fraction. Use ceiling to round up. Then multiply by the fraction.
Declare @salary table (Employee_name nvarchar(50), Salary money)
Declare @fraction money = 5000
insert into @salary
values
('ANNA', 113750),
('MARRY', 124300),
('BELLA', 105100)
update @salary
set Salary = ceiling(salary/@fraction)*@fraction
select * from @salary