select ...... where 表1.3_id in (select id from 表4 where name ="输入的值")
解决方案 »
- 请教oracle如何将查询结果导出为txt文件
- OraclePreparedStatement的问题!
- 数据库字符集,如何修改从ANSI改为unicode
- 请问"期数"这个字段用英文应该怎么表示
- SQL Server转过来了,120分求救
- 登录问题---user:internal password:oracle 登录不了,怎么回事??
- 请问如何编写可以在SQL语句中调用的函数,解决问题马上给分
- 请问如何在存储过程里写产生用户和付权限的语句。
- 急!! Oracle在win2000打开服务是有误?如何清除
- 如何编写日期条件是<=的一段时间的数据的SQL
- 如何在oracle 9i 中实现表与表的关联
- 大GG大JJ这边看过来:怎么样能同时向一个表里面插入多条记录呢?谢谢:)
b.name name2,
c.name name3,
sum(a.count) countA
from
table1 a,
table2 b,
table3 c,
table4 d
where
a.1_id=b.1_id
and a.2_id=c.2_id
and a,3_id=d.3_id
and d.name='你的name的值'
group by
b.name,
c.name
c.name,
sum(a.count) over(partition by b.name,c.name) from table1 a,
table2 b,
table3 c,
table4 d where a.1_id=b.1_id
and a.2_id=c.2_id
and a,3_id=d.3_id
and d.name='你的name的值'