日期:2014-05-18 浏览次数:20535 次
SELECT empstatus,64 , 65 FROM (SELECT EmpStatus,compid,badge FROM evw_employee) AS a PIVOT(count(badge) FOR compid IN(64,65)) AS d
SELECT empstatus,[64], [65] FROM (SELECT EmpStatus,compid,badge FROM evw_employee) AS a PIVOT(count(badge) FOR compid IN([64],[65])) AS d