UPPER() function in SQL Server
UPPER():- This function is used to convert the value of a column to upper case. Syntax: SELECT UPPER(string) OR […]
UPPER():- This function is used to convert the value of a column to upper case. Syntax: SELECT UPPER(string) OR […]
LEN():- This function is used to get the length of the given string value. Syntax:- Select len (stringvalue)
LOWER():- This function is used to convert the value of a column to lower case Syntax:- Select LOWER (string)
LTRIM ():- This function is used to get the string after the removal of leading blank spaces. Syntax:- LTRIM (
Substring():- This function is used to return the specified number (third argument “len”) of characters from a given string(first argument)
Max():- This function gives the maximum value of the selected column Syntax:- Select Max (col1) from table_name In this article,
And & Or:- These Operators are used to further filter the recordset return by SQL queries when more than one
RTRIM():-This function is used to get the string after the removal of all trailing blanks. Syntax:- RTRIM ( character_expression )
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
Except command in SQL Server returns the distinct values from the left query that are not also found on the
Like:- This operator is used in a WHERE clause to search for a specific pattern in the values of the
1. All the tables in the database have properly defined relationship using primary keys and foreign keys . 2. Indexes
This function is used to returns distinct values that are returned by both the query on the left and right
Suppose we need to find out the name of all the months in a given year (Year will be given