sql 練習

 

SELECT  DATE , SUM(CASE result WHEN '勝' THEN 1  ELSE 0 END ) AS '勝', SUM(CASE result WHEN '負' THEN 1  ELSE 0 END ) AS '負' FROM  im

result` WHERE DATE IS NOT NULL GROUP BY DATE 

結果: img

2>

相關文章
相關標籤/搜索