I need to write a subquery inside a LIKE statement. This subquery would return me a word that I need to find in the middle of a sentence (that belongs to another field). Is it possible? This is how I'm trying (and failing):
select nm_linha from linhas where cidades_origem like '%SUBQUERY HERE WOULD GO HERE%'