FLOOR() and CEILING() Function in SQL Server Last Updated : 29 Sep, 2020 Comments Improve Suggest changes Like Article 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 Comment More infoAdvertise with us Next Article FLOOR() and CEILING() Function in SQL Server sanjoy_62 Follow Improve Article Tags : SQL DBMS-SQL SQL-Server Similar Reads FLOOR() AND CEIL() Function in MySQL 1. FLOOR() Function : The FLOOR() function in MySQL is a mathematical function that returns the largest integer value that is less than or equal to a given numeric expression. It rounds down a given numeric value to the nearest integer value that is less than or equal to the original value. Syntax: 2 min read SIN() and COS() Function in SQL Server 1. SIN() Function : The SIN() function returns the sine of a number. Syntax : SIN(number) Parameter : Required. A numeric value. number : It is a numeric value. Returns : It returns the float_expression of the sine of a number. Example-1 : When the argument holds a positive number. SELECT SIN(5); Ou 1 min read TAN() and COT() Function in SQL Server 1. TAN() Function : The TAN() function returns the tangent of a number. Syntax : TAN(number) Parameter : Required. A numeric value. number : It is a numeric value. Returns : It returns the float_expression of the tangent of a number. Example-1 : When the arguments holds a positive number. SELECT TAN 2 min read ATN2() Function in SQL Server In this article, we are going to cover the ATN2()function in which we will see how we can get the arc tangent of two given numbers. Let's discuss one by one. // here val1 and val2 are input. Input : ATN2(val1, val2) Output : Arc tangent result. ATN2() : It is the function that returns the arc tangen 1 min read COUNT() Function in SQL Server The COUNT() function in SQL Server is a fundamental aggregate function used to determine the number of rows that match a specific condition. Counting rows provides valuable insights into data sets such as the total number of records, distinct values, or records meeting certain criteria.In this artic 3 min read DATEPART() Function in SQL Server DATEPART() function :This function in SQL Server is used to find a given part of the specified date. Moreover, it returns the output value as an integer.Features : This function is used to find a given part of the specified date.This function comes under Date Functions.This function accepts two para 2 min read DEGREES() and RADIANS() Function in SQL Server 1. DEGREES() Function : The DEGREES() function converts a value in radians to degrees. Syntax : DEGREES(number) Parameter : Required. A numeric value. number : It is a numeric value. Returns : It returns a value whose data type matches the data type of numeric_expression. Example-1 : Converts a radi 1 min read DATENAME() Function in SQL Server DATENAME() function : This function in SQL Server is used to find a given part of the specified date. Moreover, it returns the output value as a string. Features : This function is used to find a given part of the specified date.This function comes under Date Functions.This function accepts two para 2 min read DAY() Function in SQL Server DAY() function : This function in SQL Server is used to return the day of the month i.e, from 1st to 31st for date stated. Features : This function is used to find the day of the month for a date specified. This function comes under Date Functions. This function accepts only one parameter i.e, date. 2 min read CEILING() Function in MySQL CEILING() function :This function in MySQL is used to return the smallest integer value that is greater than or equal to a specified number. For example, if the specified number is 4.6, this function will return the integer value of 5 that is greater than 4.6 or if a specified number is 5, this func 2 min read Like