如何更新unpivot中的列查询我的查询附加的Sql Server?

use*_*724 5 c# sql-server asp.net unpivot sql-server-2008

我试图在我的查询中添加列,如下,

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'
Run Code Online (Sandbox Code Playgroud)

这个查询运行正常,但是当我添加"sf1"和"sf2"时,它给了我错误

"The type of column "sf1" conflicts with the type of other columns specified in the UNPIVOT list."
Run Code Online (Sandbox Code Playgroud)

我将如何运行上面提到的查询列我想更新像"sf1"和"sf2"

希望你的建议

谢谢