UPPER() function in SQL Server

 
UPPER() function converts the string into all uppercase characters. We can use this function to maintain the data integrity of text columns in the tables.

Example:

Suppose we have a table ‘tbl_employee’

Table name: tbl_Employee

Employee IdEmpNameSalaryDepartment
1Ankur1200Sales
2David3400Sales
3John1500HR
4James1200Production
5Mohan4500Production
6Ram2300HR

See the following sql query and its output

    SELECT UPPER(EmpName), Department FROM tbl_Employee

    And output will look like this:

    EmpNameDepartment
    ANKURSales
    DAVIDSales
    JOHNHR
    JAMESProduction
    MOHANProduction
    RAMHR