我被困在使用pivot函数来获得这个结果

时间:2012-05-11 20:57:29

标签: sql-server

sDisplayName,sMonitorTypeDescription,sMonitorTypeName

BLACK   Test accessibility  Ping

BLACK   File Transfer Protocol (FTP Server) FTP

BLACK   TCP/IP Monitor  SSH

BLACK   NT Service Monitor  RPC Service

BLACK   WMI Monitor Disk C: Free Space below 2GB

我希望看起来像这样:

sDisplayName,   Test accessibility, File Transfer Protocol (FTP Server),TCP/IP Monitor,NT Service Monitor,WMI Monitor

数据为:

BLACK Ping NULL NULL NULL NULL NULL

BLACK NULL FTP NULL NULL NULL NULL

依旧......

有人可以帮忙吗?

0 个答案:

没有答案