In MSSQL, I can do
SELECT ISNULL(Field,'Empty') from Table
But in PGSQL i get a syntax error. how do I emulate the ISNULL functionality ?
In MSSQL, I can do
SELECT ISNULL(Field,'Empty') from Table
But in PGSQL i get a syntax error. how do I emulate the ISNULL functionality ?
SELECT case field WHEN field3 IS NULL THEN 'Empty' END as fieldAlias
Or more idiomatic:
SELECT coalesce(field3, 'Empty') as fieldAlias