如何实现禁用Groupby 实现分组问题 面试题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.*,(select count(*) from order where pid=a.pid and category='A' ) A,(select count(*) from order where pid=a.pid and category='B' ) B,(select count(*) from order where pid=a.pid and category='B' ) Cfrom product 子查询或者分析函数应该都可以。分析函数跟group by差不多 使用NVL函数报错 如何让别人的sqlplus 可以访问我电脑上的数据库 如何让这条语句用上索引? 请较高人,为什么同一条sql语句执行会有0.4s时间的差异? oracle存储过程求教 oracle8.1.7管理密码忘记了,怎么恢复? 数据字典究竟为何物? ★★建索引的方案★★ 怎么删除ORACLE 表中的重复数据? oracle select语句如何进行判断。 一个略难的oracle分组查询问题 求个sql语句
(select count(*) from order where pid=a.pid and category='A' ) A,
(select count(*) from order where pid=a.pid and category='B' ) B,
(select count(*) from order where pid=a.pid and category='B' ) C
from product