What is the most feasible way to emulate the below MySQL function into postgreSQL. Since the isnull() function is no longer supported in 9.6 version. I have tried every trick in the hat to get the desired results. Still 'RPG INV' doesn't show only the other two then options show up. (case when ((`s`.`Funding_Date` = '') and (isnull(`s`.`Actual_Close_Date`) or (`s`.`Actual_Close_Date` = ''))) then 'RPG_INV' when ((isnull(`s`.`Funding_Date`) or (`s`.`Funding_Date` <> '')) and ((`s`.`Actual_Close_Date` = '') or isnull(`s`.`Actual_Close_Date`))) then 'Builder_Inventory' else 'Owner_Inventory' end) AS `Lot_Status`
Hi. Over the years I have gotten a lot of patient assistance from this mailing list, for which I am abundantly grateful. In light of that, I offer the following "translations," which are specifically in response to your question about emulating the SQL above: