UNPIVOT
will not return NULL
s, but I need them in a comparison query
. I am trying to avoid using ISNULL
the following ex
It's a real pain. You have to switch them out before the UNPIVOT
, because there is no row produced for ISNULL()
to operate on - code generation is your friend here.
I have the problem on PIVOT
as well. Missing rows turn into NULL
, which you have to wrap in ISNULL()
all the way across the row if missing values are the same as 0.0
for example.