Working with text
◈ 2 cardsUpper/lower, length, concatenation, and splitting.
Reshape text
Postgres has a deep string toolkit. The everyday ones:
upper(s)/lower(s)— change caselength(s)— number of characterss1 || s2— concatenate ('a' || 'b'→'ab')trim(s),substring(s FROM 1 FOR 3),replace(s, a, b)split_part(s, delim, n)— the nth piece after splitting
SELECT name || ' (' || city || ')' AS label FROM customers;