Table2
来源:互联网 发布:thinkpad t470 知乎 编辑:程序博客网 时间:2024/06/09 19:05
select name,
sum(
case score
when N'胜' then 1
else 0
end
) as '胜',
sum(
case score
when N'败' then 1
else 0
end
) as '败' from table2 group by name
原始数据最终效果
- Table2
- HTML教程(TABLE2)
- h5学习笔记:Table2
- insert into table1 select from table2
- insert table1 select from table2,table3
- 从Table1插记录到Table2,Field1不重复
- 面试题:sql实现,根据table1,table2得出table3
- 复制表的(create table table1 as select * from table2 )问题
- 怎样用sql语句复制表table1到表table2的同时复制主键
- 左.右连接相关 , 将table1中数据导入到table2中(表结构不相同)
- 更新table1字段b的值为原值拼接table2的b字段的值
- 将从表table2中查询到的数据插入到已建立的表table1
- SVM理论
- 个人通信录(二)主类
- Object-C 中的Selector 概念
- hdu 1829 a bug's life 5.1.1
- 关于跨域调用的相关知识
- Table2
- Oracle UNION ALL/UNION/INTERSECT/MINUS
- 个人通讯录(三)详细界面开发类
- PHP 网址
- OpenVPN的高级路由技术-内部路由
- VOA Slowly English
- 复合索引设计建议
- 分页的实现
- 静态动态库,导出类的方法