UNPIVOT will not return NULLs, but I need them in a comparison query. I am trying to avoid using ISNULL the following ex
UNPIVOT
NULL
query
ISNULL
or, in SQLServer 2008 in shorter way:
... cross join (values('col1'), ('col2'), ('col3'), ('col4')) column_names(column_name)