SELECT DATE , SUM(CASE result WHEN '勝' THEN 1 ELSE 0 END ) AS '勝', SUM(CASE result WHEN '負' THEN 1 ELSE 0 END ) AS '負' FROM im
結果: img
2>