为了账号安全,请及时绑定邮箱和手机立即绑定

sql怎么分组

sql怎么分组

fenkapian 2018-03-07 10:47:57

http://img3.sycdn.imooc.com/5a9f524a0001b41403200111.jpg

查询这个表要得到这样的结果,sql怎么写?

年份 赢次数 输次数

2008   0         1

2009   0          1

2011   1         2


查看完整描述

6 回答

已采纳
?
JasonChen1911

TA贡献2条经验 获得超0个赞

SELECT year, count(shuying='赢' OR NULL), count(shuying='输' OR NULL) 

FROM table

GROUP BY year

查看完整回答
反对 回复 2018-03-08
?
LIANHK

TA贡献112条经验 获得超34个赞

SELECT year 年份,COUNT(shuying='赢' OR NULL) 赢次数,COUNT(shuying='输' OR NULL) 输次数 FROM test GROUP BY year;


查看完整回答
1 反对 回复 2018-03-07
?
FightingBoy

TA贡献587条经验 获得超184个赞

select year as 年份,count(case when shuying='赢'THEN '赢' END) as 赢次数,count(case when shuying='输' then '输' end) as 输次数 from ceshi group by year;


查看完整回答
1 反对 回复 2018-03-07
?
慕斯6567936

TA贡献159条经验 获得超0个赞

https://www.yy.com/search-%E7%9F%AD%E4%B8%AD%E6%8F%A1b50%E7%9F%AD%E4%B8%AD%E6%8F%A1b50%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E5%AD%90%E6%89%93%E6%96%91%E9%B8%A0%E8%A7%86%E9%A2%91%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E4%B8%8B%E5%8E%8B%E5%BC%8F%E9%B8%9F%E6%8A%A2%E5%9B%BE%E7%89%87%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E8%BF%9B%E5%8F%A3pcp%E5%9B%BE%E7%89%87%E4%BB%80%E4%B9%88%E6%98%AF%E5%B0%8F%E7%B1%B3%E9%93%85%E5%BC%B9%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E9%92%A2%E7%8F%A0%E5%92%8C%E9%93%85%E5%BC%B9%E5%93%AA%E4%B8%AA%E6%9D%80%E4%BC%A4%E5%8A%9B%E5%A4%A7%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E9%93%85%E5%BC%B9%E4%B8%80%E8%88%AC%E6%AF%94%E8%86%9B%E7%BA%BF%E5%A4%A7%E5%A4%9A%E5%B0%91%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E4%B8%80%E8%88%AC%E9%93%85%E5%BC%B9%E5%A4%9A%E5%B0%91%E5%85%8B%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-6.35%E9%93%85%E5%BC%B9%E9%87%8D%E9%87%8F%E5%A4%9A%E5%B0%91%E5%85%8B%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-635jsb%E9%93%85%E5%BC%B9%E5%A4%9A%E9%87%8D%E6%9C%80%E4%BD%B3%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E9%93%85%E5%BC%B9%E5%B0%BA%E5%AF%B8%E5%A4%A7%E5%85%A86.35mm%E9%93%85%E5%BC%B9%E5%B0%BA%E5%AF%B8%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E9%93%85%E5%BC%B9%E5%90%83%E7%BA%BF%E6%B7%B1%E5%A5%BD%E8%BF%98%E6%98%AF%E6%B5%85%E5%A5%BDjsb%E9%93%85%E5%BC%B9%E5%8F%82%E6%95%B0%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E4%BB%BF%E5%BE%B7%E9%93%85%E5%BC%B9%E5%92%8Cjsb%E7%9A%84%E5%8C%BA%E5%88%AB%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E9%93%85%E5%BC%B9jsb%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D%E8%98%91%E8%8F%87%E5%A4%B4%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E9%93%85%E5%BC%B9%E4%B8%80%E5%85%B1%E5%87%A0%E4%B8%AA%E5%9E%8B%E5%8F%B7%E7%A7%83%E9%B9%B0%E5%BC%B9%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E9%B9%B0%E7%9A%84%E8%BF%87%E6%A1%A5%E5%A4%9A%E9%87%8D%E6%9C%80%E5%A5%BD%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E9%B9%B0%E8%83%BD%E7%94%A8%E5%88%AB%E7%9A%84%E5%AD%90%E5%BC%B9%E4%B8%8D%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E9%B9%B0%E8%83%BD%E6%9D%80%E6%AD%BB%E9%87%8E%E7%8C%AA%E5%90%97%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%9F%AD%E7%A7%83%E9%B9%B0%E5%A8%81%E5%8A%9B%E7%A7%83%E7%AE%A18%E7%BC%A9%E5%8F%A3%E5%A4%9A%E9%95%BF%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E5%AD%90%E6%BB%91%E8%86%9B%E7%AE%A1%E7%B2%BE%E5%BA%A6%E5%A4%9A%E5%B0%91%E7%B1%B3%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E5%AD%90%E4%B8%80%E8%88%AC%E6%A0%A1%E7%9E%84%E5%A4%9A%E5%B0%91%E7%B1%B3%E7%B2%BE%E5%87%86%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E5%AD%90%E6%A0%A1%E7%9E%84%E5%A4%9A%E5%B0%91%E7%B1%B3%E6%9C%80%E4%BD%B3%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%8C%9B%E5%B0%86%E6%B0%94%E8%83%BD%E7%94%A8%E4%BB%80%E4%B9%88%E6%B0%94%E4%BB%A3%E6%9B%BF%E7%8C%9B%E5%B0%86%E6%B0%94%E5%8E%8B%E5%8A%9B%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E5%9B%BD%E5%86%85%E7%A7%83%E5%AD%90%E9%85%8D%E4%BB%B6%E5%A4%9A%E5%B0%91%E9%92%B1%E4%B8%80%E5%A5%97%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-3%E4%B8%AA%E5%8E%8B%E5%B0%8420%E7%B1%B3%E8%83%BD%E7%A9%BF%E6%96%91%E9%B8%A0%E5%90%97%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%9D%BF%E7%90%83%E4%B8%80%E6%AC%A1%E8%83%BD%E6%89%93%E5%A4%9A%E5%B0%91%E5%8F%91%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%88%98%E7%8B%BC%E5%BC%B9%E5%BC%93%E4%B8%93%E5%8D%96%E4%BB%B7%E6%A0%BC%E9%87%8E%E5%A4%96%E7%8B%A9%E7%8C%8E%E5%B7%A5%E5%85%B7%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E4%B8%AD%E6%8F%A1%E7%A7%83%E9%B9%B0pcp%E6%89%93%E9%B8%9F%E4%B8%93%E7%94%A8%E5%B7%A5%E5%85%B7%E6%8A%A2%E5%A5%97%E4%BB%B6%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E9%B9%B0%E5%A8%81%E5%8A%9B%E6%B5%8B%E8%AF%95%E8%A7%86%E9%A2%91%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%8C%8E%E8%B1%B9m19%E9%87%8D%E5%9E%8B%E6%8A%98%E5%8F%A0%E5%BC%A9%E5%B0%84%E7%A8%8B%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%B7%98%E5%AE%9D%E6%80%8E%E4%B9%88%E6%90%9C%E7%A7%83%E5%AD%90%E6%B6%88%E9%9F%B3%E5%99%A8%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E5%AD%90%E5%A5%97%E4%BB%B6mm%E7%A7%83%E5%AD%90%E8%AF%A6%E8%A7%A3%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-fx%E5%86%B2%E6%92%9E%E8%80%85%E5%B1%9E%E4%BA%8E%E4%BB%80%E4%B9%88%E5%93%81%E7%89%8C%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-635%E6%89%93%E9%87%8E%E7%8C%AApcp%E6%8D%B7%E5%85%8B%E6%9D%BF%E7%90%83%E5%9B%BE%E7%89%87%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-pcp%E5%8F%A3%E5%BE%84%E5%A4%A7%E5%B0%8F%E4%B8%8E%E5%B0%84%E7%A8%8B%E5%8F%A3%E5%BE%84%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E8%BF%9B%E5%8F%A3PCP%E6%B0%94%E6%AD%A5%E6%8A%A2%E5%94%A7%E7%AD%92%E5%BC%8F%E6%95%A3%E5%BC%B9%E6%8A%A2%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%BB%88%E4%BA%8E%E6%89%BE%E5%88%B0%E9%87%8E%E5%A4%96%E7%8B%A9%E7%8C%8E%E5%B7%A5%E5%85%B7%E7%A7%83%E5%AD%90%E6%80%8E%E4%B9%88%E6%89%93%E9%B8%9F%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E5%AD%90%E6%89%93%E9%B8%9F%E8%A7%86%E9%A2%91%E6%88%B7%E5%A4%96%E7%8B%A9%E7%8C%8E%E6%89%93%E9%87%8E%E9%B8%A1%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E5%A5%94%E9%A9%B0%E6%89%8Bp%E6%89%93%E7%8C%8E%E7%8B%A9%E7%8C%8E%E5%B7%A5%E5%85%B7%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E5%86%B2%E6%92%9E%E8%80%85fx%E5%9B%BE%E7%BA%B8%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%80%8E%E4%B9%88%E5%BC%80%E6%89%93%E7%8C%8E%E5%B7%A5%E5%85%B7%E5%87%BA%E5%94%AE%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E5%93%AA%E9%87%8C%E5%8F%AF%E4%BB%A5%E8%B4%AD%E4%B9%B0%E7%8B%A9%E7%8C%8E%E5%B7%A5%E5%85%B7%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E5%AD%90%E5%A8%81%E5%8A%9B%E6%B5%8B%E8%AF%95%E8%A7%86%E9%A2%91%E5%BE%AE%E4%BF%A1%E5%8F%B7%E6%B0%94%E7%8B%97%E7%81%AB%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-54%E7%81%AB%E7%8B%97%E5%BE%AE%E4%BF%A1%E6%89%8B%E6%8A%A2%E5%9B%BE%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E4%BF%A1%E5%8F%B7%E7%A7%83%E5%AD%90%2A%E6%B0%94%2A%E7%8B%97%2A%E7%81%AB54%E7%81%AB%E7%8B%97%E5%BE%AE%E4%BF%A1%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%81%AB%E7%8B%97%E3%80%8264k%E3%80%82%E5%AE%9E%E5%BC%B9%E3%80%82%E9%98%B2%E8%BA%AB%E5%B0%B1%E4%B8%80%E6%8A%8A%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E8%AF%B4%E8%AF%B4%E7%9C%9F%E5%AE%9E%E7%89%88%E7%9A%84%E5%B9%B8%E8%BF%90%E6%89%8B%E6%8A%A2%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E4%B8%96%E7%95%8C%E4%B8%8A%E6%9C%80%E4%BE%BF%E6%90%BA%E7%9A%84%E9%98%B2%E8%BA%AB%E5%B0%8F%E6%89%8B%E6%8A%A2%E5%A8%81%E5%8A%9B%E5%A6%82%E4%BD%95%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-5.5%E7%B2%AE%E9%A3%9F%E7%A7%83%E5%AD%90%E6%A8%A1%E5%85%B7%E4%BB%B7%E6%A0%BC%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E5%AD%90%E5%BE%AE%E4%BF%A1%E7%BE%A4%E5%8F%B7%E8%81%94%E7%B3%BB%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E5%BE%AE%E4%BF%A1%E7%BE%A4%E9%87%8C%E5%8D%96%E6%8A%A2%E7%A7%83%E5%AD%90%E6%9A%97%E5%8F%B7%E5%A4%A7%E5%85%A8%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E9%BB%91%E5%B8%8264%E5%BC%8F%E8%81%94%E7%B3%BB%E6%96%B9%E5%BC%8F%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-54%E9%BB%91%E5%B8%82%E5%BC%8F%E8%81%94%E7%B3%BB%E6%96%B9%E5%BC%8Fwe%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-m9a1%E6%94%B9%E7%81%AB%E7%8B%97%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E9%A6%99%E6%B8%AF%E7%9A%84%E6%89%8B%E5%8D%8E%E5%B0%94%E8%A1%97%E6%B0%94%E3%80%82%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%8B%97%E5%8E%8B%E7%BC%A9%E6%B0%94%E5%8A%A8%E6%89%8B%E6%8A%A2%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%9A%97%E6%9D%80%E5%88%A9%E5%99%A8%E7%B2%BE%E5%B7%A7%E7%9A%84%E9%92%A2%E7%AC%94%E6%89%8B%E6%8A%A2%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E9%92%A2%E7%AC%94%E5%87%BB%E9%92%88%E7%BB%93%E6%9E%84%E5%9B%BE%E6%80%8E%E6%A0%B7%E7%94%A8%E9%92%A2%E7%AC%94%E5%81%9A%E6%9A%97%E5%99%A8%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E9%BB%91%E5%B8%8264%E5%BC%8F%E5%9B%BE%E7%89%87%E9%BB%91%E5%B8%82%E4%B9%B054%E5%BC%8F%E6%89%8B%E6%8A%A2%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E9%BB%91%E5%B8%8254%E5%A4%9A%E5%B0%91%E9%92%B1%E4%BB%BF64%E5%BC%8F%E7%81%AB%E7%8B%97%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E4%B8%AD%E5%9B%BD%E4%BA%BA%E5%9C%A8%E7%BC%85%E7%94%B8%E7%8E%A9%E6%8A%A2%E4%B8%AD%E5%9B%BD%E5%85%81%E8%AE%B8%E5%90%97%3F%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E8%B6%8A%E5%8D%97%E8%BE%B9%E7%95%8C%E8%80%81%E8%A1%97%E6%8A%A2%E6%94%AF%E5%B8%82%E5%9C%BA%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E4%BF%84%E7%BD%97%E6%96%AF%E6%8A%A2%E8%B4%A9%E4%B8%AD%E5%9B%BD%E8%BE%B9%E5%A2%83%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E4%B8%AD%E5%9B%BD%E4%B8%8E%E4%BF%84%E7%BD%97%E6%96%AF%E8%BE%B9%E5%A2%83%E8%B4%A9%E6%8A%A2%E4%BA%91%E5%8D%97%E9%BB%91%E6%8A%A2%E7%8E%B0%E7%8A%B6%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E4%B8%AD%E4%BF%84%E8%BE%B9%E5%A2%83%E6%90%9E%E6%8A%A2%E4%BF%84%E7%BD%97%E6%96%AF%E6%8A%A2%E6%A2%B0%E5%B8%82%E5%9C%BA%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-64%E5%92%8C54%E5%BC%8F%E7%9A%84%E8%81%94%E7%B3%BB%E6%96%B9%E5%BC%8F%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E4%BA%94%E8%BF%9E%E5%8F%91%E5%B0%8F%E5%8F%A3%E5%BE%84%E5%9B%BD%E9%99%85%E8%B5%B0%E7%A7%81%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E8%B0%81%E6%9C%89%E7%A7%83%E5%AD%90%E5%BE%AE%E4%BF%A1%E3%80%82%E7%A7%83%E5%AD%90%E8%80%81%E5%B8%88%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E5%AD%90%E6%9D%BF%E7%90%83%E5%BE%AE%E4%BF%A1%E5%8F%B7%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E5%86%9B%E7%94%A864%E5%BC%8F%E6%89%8B%E4%BB%B7%E6%A0%BC%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E5%85%A8%E9%87%91%E5%B1%9E%E5%8F%AF%E6%8A%9B%E5%A3%B364%E5%BC%8F%E7%8E%A9%E5%85%B7%E6%8A%A2%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-64%E5%BC%8F%E6%89%8B%E6%8A%A2%E5%88%86%E8%A7%A3%E5%9B%BE%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-64%E5%BC%8F%E6%8A%A2%E8%89%B2%28%E5%8F%AF%E6%8A%9B%E5%A3%B3%29%2B5%E5%8F%91%E5%BC%B9%E6%A8%A1%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E5%9B%BD%E4%BA%A754%E5%BC%8F%E6%89%8B%E6%8A%A2%E7%9A%843%E5%A4%A7%E6%88%90%E5%90%8D%E4%B9%8B%E6%88%98%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E5%A6%82%E4%BD%95%E8%AF%84%E4%BB%B756%E5%BC%8F%E5%8D%8A%E8%87%AA%E5%8A%A8%E6%AD%A5%E6%8A%A2%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-56%E5%BC%8F%E5%8D%8A%E8%87%AA%E5%8A%A8%E6%AD%A5%E6%8A%A2%E7%9A%84%E5%B0%84%E7%A8%8B%E5%92%8C%E6%9D%80%E4%BC%A4%E5%8A%9B%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E5%9B%BD%E4%BA%A756%E5%BC%8F%E5%8D%8A%E8%87%AA%E5%8A%A8%E6%AD%A5%E6%8A%A2%E5%9C%A8%E7%BE%8E%E5%9B%BD%E7%83%AD%E5%8D%96%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E5%AD%90%E7%A7%83%E5%AD%90%E8%A6%81%E7%9A%84%E8%81%94%E7%B3%BBpcp%E7%A7%83%E5%AD%90%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E5%AD%9025%E4%B8%AA%E5%8E%8B%E8%83%BD%E6%89%93%E5%A4%9A%E5%B0%91%E5%8F%91%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E7%A7%83%E5%AD%90%E6%81%92%E5%8E%8B%E5%A4%9A%E5%B0%91%E5%BE%AE%E4%BF%A1%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E8%B6%85%E7%BE%8E%E5%8A%A0%E5%A4%A7%E6%B0%94%E5%AE%A4%E6%81%92%E5%8E%8B%E9%98%80%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E8%B6%85%E7%BE%8E%E6%81%92%E5%8E%8B%E9%98%80%E7%BB%84%E8%A3%85%E8%B0%83%E8%AF%95%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%81%92%E5%8E%8B%E9%98%80%E6%80%8E%E6%A0%B7%E8%BF%9E%E6%8E%A5%E7%B2%BE%E5%AF%86%E7%AE%A1%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%89%93%E9%B8%9F%E5%B7%A5%E5%85%B7%E5%BE%AE%E4%BF%A1%E6%89%93%E9%B8%9F%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%89%93%E9%B8%9F%E7%94%A8%E4%BB%80%E4%B9%88%E5%B7%A5%E5%85%B7%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%89%93%E9%B8%9F%E7%94%A8%E4%BB%80%E4%B9%88%E5%B7%A5%E5%85%B7%E5%A5%BD%E5%91%A2%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E5%BC%A9%E6%89%93%E6%96%91%E9%B8%A0%E8%A7%86%E9%A2%91%EF%BC%8Cm4%E7%8C%8E%E8%B1%B9%E6%89%93%E9%92%A2%E7%8F%A0%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E9%92%A2%E5%B0%86m4%E6%94%B9%E8%A3%85%E5%8F%AF%E4%BB%A5%E6%89%93%E9%92%A2%E7%8F%A0%E9%93%85%E7%B2%AE%E7%A3%A8%E5%85%B7%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E5%85%A8%E9%92%A2%E5%B0%8F%E5%BC%A9%E9%9C%B8%EF%BC%8C%E5%B0%8F%E5%9E%8B%E5%BC%93%E5%BC%A9%E5%A4%9A%E5%B0%91%E9%92%B1%E4%B8%80%E4%B8%AA%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%89%93%E7%8B%97%E9%BA%BB%E9%86%89%E9%92%88%E6%8A%A2%E4%BB%B7%E6%A0%BC%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%89%93%E7%8B%97%E9%BA%BB%E9%86%89%E9%92%88%E6%8A%A2%E5%A4%9A%E5%B0%91%E9%92%B1%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%89%93%E7%8B%97%E9%BA%BB%E9%86%89%E9%92%88%E6%89%B9%E5%8F%912020%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%89%93%E7%8B%97%E9%BA%BB%E9%86%89%E9%92%88%E6%89%93%E7%8B%97%E5%87%A0%E7%A7%92%E5%80%92%281974%D0%97%D0%9755%D0%97.Q%29img
https://www.yy.com/search-%E6%89%93%E7%8B%97%E9%BA%BB%E9%86%89%E9%92%88%E5%8F%91%E5%B0%84%E5%99%A8%281974%D0%97%D0%9755%D0%97.Q%29img

查看完整回答
反对 回复 2021-07-21
?
FightingBoy

TA贡献587条经验 获得超184个赞

select year as 年份,count(case when shuying='赢'THEN '赢' END) as 赢次数,count(case when shuying='输' then '输' end) as 输次数 from ceshi group by year;


查看完整回答
反对 回复 2018-03-07

添加回答

回复

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信