select sum(b.total) from a,b where a.id=b.id group by a.parent_id
解决方案 »
- 任何密码均可连接system,sys
- orcale中 Packages中的存储过程的 具体实现代码放在哪里了
- oracle11g+win7:ORA-12154: TNS:could not resolve the connect identifier specified
- Oracle新手问题(2)
- 请问一下在oracle中为什么在登陆的时候报一个进程过多的错误呢
- oracle行转列(急,在线等,分不够可以再加)
- 个位大哥帮帮小弟
- 一个关于sequence的奇怪问题,急!!!!请大家帮忙啦!!
- 请问:这段插入代码有什么问题,执行时会报错。高手进来看一下
- 数据库恢复问题!(只剩了文件,没有备份!着急!!!谢谢!!!)(先来50分,不够加!!)
- 关于记录集返回值问题,在线等待......
- 如何得到数据库中使用A表主键作为外键的表?
(
select a.parent_id,sum(b.total) from a,b where a.id=b.id
)
group by parent_id;
select a.PARENT_ID,sum(b.total) from a,b where a.id=b.id group by a.PARENT_ID