标签:select log logs case png ade com images else
select *from Result
select Time 日期,
sum
(
case
when Grade=‘胜‘ then 1
else 0
end
) as 胜,
sum
(
case
when Grade=‘负‘ then 1
else 0
end
) as 胜
from Result
group by Time
标签:select log logs case png ade com images else
原文地址:http://www.cnblogs.com/sujulin/p/6537655.html