EasyString Functions

UPPER, LOWER, INITCAP: case functions

The query

SQL
SELECT
  UPPER(first_name) AS upper_name,
  LOWER(last_name) AS lower_name,
  INITCAP(LOWER(first_name || ' ' || last_name)) AS proper_name
FROM employees;
Tested against PostgreSQL 16

Note

INITCAP capitalizes first letter of each word. PostgreSQL-specific (not in standard SQL).

Tables referenced