I'm novice in PostgreSQL. I have a column timestamp without time zone named FailureTime. At the beginning it has NULL value.
When SELECT I need to get all entries that has current_timestamp - FailureTime > interval '7'.
But when FailureTime is NULL the result of operation is NULL.
Can I cast NULL to ZERO value or somehow get just current_timestamp as result of the operation?
FailureTime IS NOT NULLin your "WHERE" clause ?