I am trying to count the number of missing postal codes using CASE to flag null values as 1, otherwise 0.
CASE WHEN ([postcode]=NULL)
THEN 1
ELSE 0 END AS pc_missing
Even though I know there are lots of missing data, none of them receive the value of 1.
What have I done wrong?