RIGHT() function in SQL Server
SQL Server – RIGHT ()Ā function Right():- This function returns the specified number of characters from the Right part of the […]
SQL Server – RIGHT ()Ā function Right():- This function returns the specified number of characters from the Right part of the […]
LEFT() function in SQL Server Left() Function Ā This function returns the specified number of characters from the left part of
Between function in SQL Server This function is used to select the values within a specified range. These values can
With IN clause, we can specify multiple values in a WHERE clause. For example, in case of “IN”, one can
UPPER():- This function is used to convert the value of a column to upper case. Syntax: SELECT UPPER(string) OR
Avg():- This function is used to get the average value of a numeric column Syntax:- SELECT AVG(column_name) FROM table_name
LOWER():- This function is used to convert the value of a column to lower case Syntax:- Select LOWER (string)
LEN():- This function is used to get the length of the given string value. Syntax:- Select len (stringvalue)
Substring():- This function is used to return the specified number (third argument “len”) of characters from a given string(first argument)
LTRIM ():- This function is used to get the string after the removal of leading blank spaces. Syntax:- LTRIM (
Max():- This function gives the maximum value of the selected column Syntax:- Select Max (col1) from table_name In this article,
RTRIM():-This function is used to get the string after the removal of all trailing blanks. Syntax:- RTRIM ( character_expression )
And & Or:- These Operators are used to further filter the recordset return by SQL queries when more than one
Sum():- This function is used to get the sum of values of the specified numeric column. Syntax:- Select Sum (column_name)
Round():-This function is used to round a numeric field to the number of decimals specified. Syntax:- ROUND ( numeric_expression