FLOOR() and CEILING() Function in SQL Server Last Updated : 29 Sep, 2020 Comments Improve Suggest changes 2 Likes Like Report 1. FLOOR() Function : The FLOOR() function returns the largest integer value which is less than or equal to a number. Syntax : FLOOR(number) Parameter : Required. A numeric value. number : It is a numeric value. Returns : It returns the integer value. Example-1 : When the argument holds a positive number. SELECT FLOOR(21.53); Output : 21 Example-2 : When the argument holds a negative number. SELECT FLOOR(-21.53); Output : -22 2. CEILING() Function : The CEILING() function returns the smallest integer value which is greater than or equal to a number. Syntax : CEILING(number) Parameter : Required. A numeric value. number : It is a numeric value. Returns : It returns the integer value. Example-1 : When the argument holds a positive number. SELECT CEILING(21.53); Output : 22 Example-2 : When the argument holds a negative number. SELECT CEILING(-21.53); Output : -21 Create Quiz Comment S sanjoy_62 Follow 2 Improve S sanjoy_62 Follow 2 Improve Article Tags : SQL DBMS-SQL SQL-Server Explore BasicsWhat is SQL?6 min readSQL Data Types3 min readSQL Operators4 min readSQL Commands | DDL, DQL, DML, DCL and TCL Commands4 min readSQL Database Operations3 min readSQL CREATE TABLE3 min readQueries & OperationsSQL SELECT Query3 min readSQL INSERT INTO Statement4 min readSQL UPDATE Statement3 min readSQL DELETE Statement3 min readSQL - WHERE Clause2 min readAliases in SQL2 min readSQL Joins & FunctionsSQL Joins (Inner, Left, Right and Full Join)4 min readSQL CROSS JOIN1 min readSQL | Date Functions4 min readSQL | String functions6 min readData Constraints & Aggregate FunctionsSQL NOT NULL Constraint2 min readSQL PRIMARY KEY Constraint5 min readSQL Count() Function7 min readSQL SUM() Function2 min readSQL MAX() Function4 min readAVG() Function in SQL4 min readAdvanced SQL TopicsSQL Subquery5 min readWindow Functions in SQL6 min readSQL Stored Procedures7 min readSQL Triggers5 min readSQL Performance Tuning6 min readSQL TRANSACTIONS6 min readDatabase Design & SecurityIntroduction of ER Model9 min readIntroduction to Database Normalization6 min readSQL Injection11 min readSQL Data Encryption5 min readSQL Backup4 min readWhat is Object-Relational Mapping (ORM) in DBMS?7 min read Like