

LEN function calculates the length of the string using It returns value 35 for the current string We define the text in a variable and define a few other variables and function converts all text into lowercase using SQL Lower fruits:- apple mango orange banana Let’s understand this function and see how it works. In the following screenshot, we can see it coverts the upper case of each word’s first letter. ( 'FRUITS :- APPLE MANGO ORANGE BANANA' ) It converts all characters into capital letters. We use SQL UPPER function to convert the characters in the expression into uppercase. Let’s explore a few available scenarios in the further section of this article. You might think of a question at this point – Is it possible to covert the character case in SQL Server to an appropriate format. Residential high street, STREET, Market, SA For example, in column, we have Raj (First character capital), sonu (all small case characters) and PAUL (capital letters). In the following table, you can see the different types of inputs from different customers. It does not look good as well if you have to share the report daily to higher management for all newly enrolled customers. We do not see all words following a consistent pattern. Each customer is different so you cannot expect a similar format for all inputs.įor example, you get the following entries in your SQL table. Each customer provides few mandatory information such as first name, last name, email address and residential address. Customers visit the website and provide their necessary information while creating a login account. Suppose you have an online shopping website. This article gives an overview of SQL UPPER function and SQL LOWER function to convert the character case as uppercase and lowercase respectively.
