如何在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)
)
我想先得到相交的结果,然后再联合应用,如何组合这样的两个结果集?
发布于 2015-03-25 19:33:27
就这么做怎么样?
Select *
from table
where ((cond 1) and (cond 2)) or
((cond 3) and (cond 4));https://stackoverflow.com/questions/29264738
复制相似问题