LOG10() Function in SQL Server Last Updated : 29 Sep, 2020 Comments Improve Suggest changes Like Article Like Report This function returns the logarithm of a number to base 10. Syntax : LOG10(number) Parameter : This method accepts a single-parameter as mentioned above and described below. number - This parameter hold a number which is greater than 0. Returns - It returns the base-10 logarithm of the specified number. Let's consider the following examples. Example-1 : SELECT LOG10(1) Result; Output : Result 0 Example-2 : SELECT LOG10(10) Result; Output : Result 1 Example-3 : Return the base-10 logarithm of 10. SELECT LOG10(10); Output : 1.0 Example-4 : Return the base-10 logarithm of 1. SELECT LOG10(1); Output : 0.0 Example-5 : When the argument passing as an expression. SELECT LOG10(2 * 3); Output : 0.77815125038364363 Comment More infoAdvertise with us Next Article LOG10() Function in SQL Server S sanjoy_62 Follow Improve Article Tags : SQL DBMS-SQL SQL-Server Similar Reads LOG() Function in SQL Server The LOG() function returns the logarithm of a specified number or the logarithm of the number to the specified base. Syntax : LOG(number, base) Parameter : LOG() function accepts two-parameters as mentioned above and described below. number - This parameter hold a number which is greater than 0. bas 1 min read MONTH() Function in SQL Server MONTH() function : This function in SQL Server is used to return the month of the year i.e, from 1 to 12 for a date stated. Features : This function is used to find the month of the year for a date specified. This function comes under Date Functions. This function accepts only one parameter i.e, dat 2 min read LTRIM() Function in SQL Server The LTRIM() function in SQL Server removes all the space characters found on the left-hand side of the string. It removes the leading spaces from a string, SyntaxThe LTRIM function for SQL Server syntax is: LTRIM(string, [trim_string]) Parameter: string - The string from which the leading space char 2 min read SQL Server ISNULL() Function The ISNULL() function in SQL Server is a powerful tool for handling NULL values in our database queries. It allows us to replace NULL values with a specified replacement value, ensuring that your queries return meaningful results even when data is missing.In this article, We will learn about the SQL 3 min read Scalar Function in SQL Server Pre-requisites: Categories of SQL Functions In SQL Server, a scalar function is a type of user-defined function that returns a single scalar value based on the input parameters passed to it. The scalar function is used to perform some calculations or operations on the input parameters and return a s 2 min read Like