I am setting a field based on another field from a table with this check:
count(case
when recipient_status = 'Premium' and
delivered_in_estimated_time_window <> false
then 1 end)
If I get a value delivered_in_estimated_time_window
as null
I would like to count it, and only if the value is false I don't want to count it. So, for example if a row looks like this:
recipient_status | delivered_in_estimated_time_window
'Premium' | null
Then I would like add to count 1. Only if a row looks like this one below I don't want to count it:
recipient_status | delivered_in_estimated_time_window
'Premium' | false
But, this seems to not count null
fields. Why is <> false
not working for null
values?