一个复杂的SQL语句上的问题 select a.name as name,count(b.no) as sumfrom table1 a left join table2 bon a.no=b.nogroup by a.name 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.name,(select count(*) from test2 where b.id=.id) aaaa from test1 a; 如果表不大的话嵌套很好理解select table1.name,(select count(1) from table2 where table2.no=table1.no) sumfrom table1; 这样就可以啦select a.name as name,count(b.no) as sumfrom table1 a , table2 bwhere a.no=b.no(+)group by a.name oracle ora-12514错误求解答!!!! 数据库每天都在读写数据,为什么USER01.dbf的修改日期连续3天没有变化? 复制表结构的问题 关于oracle的一个问题 怎么调试这个存储过程,帮我看看哪儿有错!!望指点,在线急等 oracle8.016安装时的问题!!急~~~~~~ 怎样导出oracle数据库 怎样知道某一个存储过程是否正在执行!!!! 谁有SQL Navigator 3的authorization key? 如果把oracle中的数据传到 sql server2008中 哪位大哥愿意帮小弟一个问题....DB2D的 请问GET_LINE结尾情况??
嵌套很好理解select table1.name,(select count(1) from table2 where table2.no=table1.no) sum
from table1;
select a.name as name,
count(b.no) as sum
from table1 a , table2 b
where a.no=b.no(+)
group by a.name