SQL – SQL Server LEN() Function
The SQL Server LEN() function returns the length of a string. Trailing spaces (after) are not included, but leading spaces (before) are included.
The SQL Server LEN() function returns the length of a string. Trailing spaces (after) are not included, but leading spaces (before) are included.
The SQL Server LOG() function returns the natural logarithm of a specified number, or the logarithm of the number to the specified base.
The SQL Server LOG10() function returns the natural logarithm of a number greater than 0 to base 10.
The SQL Server LTRIM() function removes leading spaces from a string. Leading spaces are spaces before (left of) the string.
The SQL Server MAX() function returns the maximum value in a set of values.
The SQL Server MIN() function returns the minimum value in a set of values.
The SQL Server MONTH() function returns the month part for a specified date (a number from 1 to 12).
The SQL Server NCHAR() function returns the Unicode character based on the number code provided.
The SQL Server NULLIF() function returns NULL if two expressions are equal, or returns the first expression if they are not equal.
The SQL Server PATINDEX() function returns the position of a pattern in a string. If the pattern is not found, this function returns 0.
The SQL Server QUOTENAME() function returns a Unicode string with delimiters added to make the string a valid SQL Server delimited identifier.
The SQL Server POWER() function returns the value of a number raised to the power of another number.
The SQL Server RADIANS() function converts a degree value (expressed as a positive or negative number) into radians.
The SQL Server RAND() function returns a random number between 0 (inclusive) and 1 (exclusive).
The SQL Server REPLACE() function replaces all occurrences of a substring (case-insensitive) within a string, with a new substring.
The SQL Server REPLICATE() function repeats a specified string a specified number of times.
The SQL Server REVERSE() function reverses a specified string and returns the result.
The SQL Server RIGHT() function extracts a number of characters (starting from right) from a string.