【发布时间】:2015-05-29 15:49:32
【问题描述】:
oracle SQL中如何组合多个查询结果集
示例查询是
选择 * 从表哪里
中的table.id(
(
select table.id
from table
where cond 1
intersect
select table.id
from table
where cond 2
)
联合
(
select table.id
from table
where cond 3
intersect
select table.id
from table
where cond 4
)
)
我想先得到相交结果,然后应该应用联合如何组合这样的两个结果集?
【问题讨论】:
-
先得到相交结果是什么意思?这个查询没有给你预期的结果?