Use of UPPER Function in SQL

Use of UPPER Function in SQL:

(1) “UPPER” function is used for converting text in upper case.

(2) Let’s take an example to convert the text of Vendor Name into Upper case as shown.

(3) Select the database in the SQL server and click on the “New Query” button as shown.

Select the database in the SQL server and click on the new query button

(4) After that new query editor opens as shown.

new query editor open in sql

(5) After doing the above steps, write a query in the editor, as shown.

Upper Function Query in SQL

Source Code:

–//UPPER Function
Select [No_] AS [Vendor No.],[Name] AS [Vendor Name],
UPPER([Name])AS [UPPER(Text into Upper case)]
Fromdbo.[CRONUS India Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] 
–//UPPER Function

(6) Then Execute or Press F5 to run the query and see the result as shown.

execute upper function query in sql

Use of RIGHT Function in SQL
Use of DATALENGTH Function in SQL
Use of CHARINDEX Function in SQL
UPPER (Transact-SQL)– Microsoft Docs

Leave a Reply