If I have a SQL query in Oracle with a bunch of nested but repetitive functions like:
select trim('0' from trim(' ' from address))
from customers
where
trim('0' from trim(' ' from address)) <> '1234 MAIN ST' and
trim('0' from trim(' ' from address)) <> '1234 WOOD ST'
is there some way of caching/naming the result of trim('0' from trim(' ' from address)) so that I'm not running it over and over again?