SqlServer打橫查詢

SELECT t1.DATA_TIME, MAX(CASE WHEN t1.AREA_ID='三裏坪_0' THEN T1.AREA_RAIN_VALUE ELSE '0.00' END) AS '三裏坪_0', MAX(CASE WHEN t1.AREA_ID='清江各流域_6' THEN T1.AREA_RAIN_VALUE ELSE '0.00' END) AS '清江各流域_6', MAX
相關文章
相關標籤/搜索