i am trying to add column in my query it is as under,
SELECT Name as [holiday_name] FROM tableMonth t UNPIVOT (ID for Name in (m1,m2,m3,sf1,sf2)) u WHERE ID != 0.0 and D_No ='0700'
this query was running fine but when i add "sf1" and "sf2" it give me error
"The type of column "sf1" conflicts with the type of other columns specified in the UNPIVOT list."
how would i run query mentioned above with column i want to update like "sf1" and "sf2"
hopes for you suggestions
thanks