I'm trying to do something like this in Progress SQL (THIS IS NOT POSTGRES!)
SELECT
CASE WHEN code LIKE '%foo%' THEN 'Y' ELSE 'N' END as foo
FROM
bar
However Progress does not support a LIKE operator. INSTR
looks like it might do the job, but it is a Progress extension an isn't supported on the DB I am using. Is there another way of achieving this using standard ODBC functions?
Thanks