我有两个表如下。我正在使用Oracle 10g从Table1中获取表中缺少table2 oracle的行吗?
TableA
---------
id Name
--- ----
1 abc
2 def
3 xxx
4 yyy
TableB
---------
id Name
--- ----
1 abc
2 def
TableC
---------
id Name
--- ----
1 abc
2 def
现在我需要获得ids from TableA which are not there in TableB and TableC
。我怎样才能做到这一点,而不使用NOT IN子句?
请帮帮我!
谢谢!
wt如果你加入id不等于条件的两个表并获得独特的ID? – 2013-03-08 10:55:39