isnull text postgres code example Example: postgresql isnull with max SELECT coalesce(field, 'Empty') AS field_alias