How to SELECT round up number in SQL Server

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

I have a salary table with this column

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


        
5条回答
  •  无人共我
    2021-01-25 08:58

    You can use the CEILING function.

    Like:

    SELECT EMPLOYEE_NAME CEILING(SALARY)
    

    Read this for further details

    Short summary from the above link:

    In SQL Server (Transact-SQL), the CEILING function returns the smallest integer value that is greater than or equal to a number.

提交回复
热议问题