How to SELECT round up number in SQL Server

前端 未结 5 1871
南方客
南方客 2021-01-25 08:44

I have a salary table with this column

EMPLOYEE_NAME    SALARY
------------------------
ANNA             113750
MARRY            124300
BELLA            105100
<         


        
5条回答
  •  旧时难觅i
    2021-01-25 09:21

    try this.

    select EMPLOYEE_NAME, ceiling(salary / 1000.0) * 1000.0 as SALARY from table;
    

提交回复
热议问题