sql - get first letter of string, disregarding "the" -
i trying list of book titles begin letter. however, need disregard "the" @ beginning of title. instance, when i'm looking titles begin "a", query should return both "the alamo" , "american history".
how can this?
use
where case when substr(title, 1, 4) = 'the ' substr(title, 5) else title end '...'
in query, or use patterns.