SQL UPPER() and LOWER() Functions Explained with Examples

Опубликовано: 01 Май 2026
на канале: Udit Singhal
82
2

In SQL, the UPPER() and LOWER() functions are used to convert the case of text data. The UPPER() function takes a string and returns it with all letters converted to uppercase, while the LOWER() function converts all letters in the string to lowercase. These functions are especially useful when performing case-insensitive comparisons, standardizing data formats, or preparing strings for consistent display. For example, UPPER('hello') returns 'HELLO' and LOWER('WORLD') returns 'world'. They are commonly used in SELECT queries, WHERE clauses, and string transformations.

Check all SQL Videos here-
Introduction to SQL:    • Introduction to SQL  
SQL Syntax:    • SQL Syntax | SQL Tutorial for Beginners  
Creating Table SQL:    • Creating Table SQL | SQL Tutorial for Begi...  
SQL Select Statement:    • SQL Select Statement | SQL Tutorial for Be...  
SQL Select Distinct Statement:    • SQL Select Distinct Statement | SQL Tutori...  
SQL WHERE Statement:    • SQL WHERE Statement | SQL Tutorial for Beg...  
SQL ORDER BY:    • SQL ORDER BY | SQL Tutorial for Beginners  
SQL AND Operator:    • SQL AND Operator | SQL Tutorial for Beginners  
SQL OR Operator:    • SQL OR  Operator | SQL for Beginners  
SQL NOT Operator:    • SQL NOT Operator | SQL Tutorial for Beginners  
SQL MIN( ) & MAX( ) Functions:    • SQL MIN( )  & MAX( )  Functions | SQL Tuto...  
SQL COUNT Function:    • SQL COUNT Function | SQL Aggregate Functio...  
SQL SUM Function:    • SQL SUM Function | SQL Aggregate Function ...  
SQL Average Function:    • SQL Average Function | SQL Aggregate Funct...  
SQL LIKE Operator:    • SQL LIKE Operator | How to use wildcards S...  
SQL IN Operator:    • SQL IN Operator | How to use IN  Operator ...  
SQL BETWEEN Operator:    • SQL BETWEEN Operator | How to use BETWEEN ...  
SQL GROUP BY & HAVING Statement:    • SQL GROUP BY & HAVING Statement | How to u...  
SQL CASE WHEN Statement:    • SQL CASE WHEN Statement | How to use CASE ...  
SQL JOINS:    • SQL JOINS | Introduction to SQL JOINS | SQ...  
RANK Function in SQL:    • RANK Function in SQL | SQL Window Function  
DENSE RANK Functions in SQL:    • DENSE RANK Functions in SQL | SQL Window F...  
SQL ROW_NUMBER Function:    • SQL ROW_NUMBER Function | SQL Window Function  
SQL LAG and LEAD Functions:    • SQL LAG and LEAD Functions | Master SQL LE...  
SQL Left Join vs Right Join:    • SQL Joins Simplified - Left Join vs Right ...  
SQL UNION vs UNION ALL:    • UNION vs UNION ALL : SQL Basics You Must K...  
SQL EXISTS:    • SQL EXISTS Explained with Correlated Subqu...  
SQL Self Joins:    • Understand Self Joins in SQL Through a Man...  


#sql #dataanalysts #dataengineer #dataanalysis #interviewquestion #sqlinterview #datascience #dataanalytics #Upper #Lower