日期:2014-05-18 浏览次数:20490 次
SELECT SUM(CASE WHEN DATEPART(MM,TIME)=1 THEN NUM ELSE 0 END)AS '01', SUM(CASE WHEN DATEPART(MM,TIME)=1 THEN NUM ELSE 0 END)AS '01' SUM(CASE WHEN DATEPART(MM,TIME)=1 THEN NUM ELSE 0 END)AS '01' SUM(CASE WHEN DATEPART(MM,TIME)=1 THEN NUM ELSE 0 END)AS '01' SUM(CASE WHEN DATEPART(MM,TIME)=1 THEN NUM ELSE 0 END)AS '01' SUM(CASE WHEN DATEPART(MM,TIME)=1 THEN NUM ELSE 0 END)AS '01' SUM(CASE WHEN DATEPART(MM,TIME)=1 THEN NUM ELSE 0 END)AS '01' .. FROM TB