select ColA from Table where colB=0 and ColA in (select /*+FIRST_ROWS*/ ColA from Table where ColB=1)
解决方案 »
- 逻辑IO 怎么能被减少呢?
- [急]关于性能问题
- 关于OCIServerAttach接口的问题
- Oracle中如何编写通过Databaselink得到的sequence?
- 关于触发器问题
- 高分求p3095277_9204_LINUX.zip ,p3006854_9204_LINUX.zip,p3119415_9204_LINUX.zip
- metalink.oracle.com 的帐号怎么得到?我想下oracle在linux中安装的补丁
- 从日期字段取年度,季节的写法,要多少分就多少分
- 高分求解高手:ORACLE中怎么处理多页显示的问题?!
- 为什么在8i能执行的,将数据库移植到9i后存储过程不能执行。
- classes12-9i.jar这个驱动从哪找?
- 一个简单的关联表更新问题
where colB = '1'
and exists(select 1 from table_name where colA = a.colA and colB='0')
(select colA, colB, decode(colB, 1, 1, 0, -1, -10000) colC from table_name) t
group by colA
having sum(colC)=0
intersect select cola from table_name where colb = 0;