I am in the process of converting some t-sql queries to postgres and I am having trouble wrapping my head around the postgres wildcard logic.
eg:
The following query in tsql will yeild 'A' however in postgres it returns 'B'
Select
case when 'abcd 1234' like '%[a-z]%[0-9]%' then 'A' else 'B' end as Q1
What would be the postgres equivalent to the above case when statement? Furthermore, does anyone have a general rule of thumb for converting tsql string logic to postgres ?
Thanks in advance!