Introduction
These functions change text to all uppercase or all lowercase letters. This helps to compare or display text in a consistent way.
UPPER(text_expression) LOWER(text_expression)
SELECT UPPER('hello world');
SELECT LOWER('HELLO WORLD');
SELECT UPPER(name) FROM employees;
SELECT LOWER(email) FROM users;
CREATE TABLE people (id INT, name VARCHAR(20)); INSERT INTO people VALUES (1, 'Alice'), (2, 'Bob'), (3, 'Charlie'); SELECT id, UPPER(name) AS name_upper, LOWER(name) AS name_lower FROM people ORDER BY id;
UPPER('Hello World') return?name to lowercase in SQL?users with a column username containing values: 'Alice', 'BOB', 'charlie', what will the query SELECT LOWER(username) FROM users; return?SELECT LOWER username FROM users;products where the category column equals 'Books', ignoring case differences. Which SQL WHERE clause correctly does this?Pass the test and this pattern moves unknown