百分求一句SQL语句,懂的人应该很简单 来求出C字段的COUNT 什么意思?根据A,B组合来分组,下面就可以了select A,B,count(1) from table group by A,B 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 比如说 A B C(比如是分数) a1 b1 1 a1 b2 1 a2 b2 1 a2 b2 1 a2 b1 1 a2 b1 1想统计出: A B C(合计) a1 b1 1 a1 b2 1 a2 b1 2 a2 b2 2 select count(rowid) from table group by a,b; select A,B,count(C) C from table group by A,B; select a,b,sum(c) from table group by a,b 如果计算记录数,用count()如果求和,用sum() group by笔试练习 oracle中数据同步 Oracle9i的develop版的occi接口谁有啊? 请问oracle中用什么数据类型存储Timestamp? 请教一个数据类型的问题。 在Function中用if语句怎么总是编译错误啊? PL/SQL实现小计的语句如何写? 请问在oracle 9i中,怎么去创建一个数据库? mySql使用存储过程批量存取 sql查询树形视图,不查没有子节点的父行 Oracle 所在磁盘空间已满,请问如何清除? 求一句sql语句(小妹急需,在线等待)
A B C(比如是分数)
a1 b1 1
a1 b2 1
a2 b2 1
a2 b2 1
a2 b1 1
a2 b1 1
想统计出:
A B C(合计)
a1 b1 1
a1 b2 1
a2 b1 2
a2 b2 2
如果求和,用sum()