Subject RE: [firebird-support] COALESCE() + CAST() converts timestamp format
Author Svein Erling Tysvær
By the way, Bhavbhuti,

CAST(COALESCE(tPB.dBillDt, '') AS TIMESTAMP) AS tDocDt

will fail if tPB.dBillDt is null since '' cannot be converted to a timestamp (it is neither a timestamp nor null).

Set