Concept Flow - UPPER and LOWER functions
Input String
Apply UPPER or LOWER
Return Modified String
Use in Query Result
The input string is taken, converted to all uppercase or lowercase letters, then returned for use in query results.
SELECT UPPER('Hello World') AS upper_text, LOWER('Hello World') AS lower_text;
| Step | Function | Input | Output |
|---|---|---|---|
| 1 | UPPER | 'Hello World' | 'HELLO WORLD' |
| 2 | LOWER | 'Hello World' | 'hello world' |
| 3 | Query Result | N/A | upper_text = 'HELLO WORLD', lower_text = 'hello world' |
| Variable | Start | After UPPER | After LOWER | Final |
|---|---|---|---|---|
| input_string | 'Hello World' | 'Hello World' | 'Hello World' | 'Hello World' |
| upper_text | NULL | 'HELLO WORLD' | 'HELLO WORLD' | 'HELLO WORLD' |
| lower_text | NULL | NULL | 'hello world' | 'hello world' |
UPPER(string) converts all letters to uppercase.
LOWER(string) converts all letters to lowercase.
Non-letter characters stay unchanged.
Use in SELECT queries to format text output.
Example: SELECT UPPER('abc') returns 'ABC'.