我有兩個表如下。我正在使用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