我命名爲tmptable1
和tmptable2
兩個SQL數據表我想顯示在tmptable1
數據,但不能在tmptable2
我已經寫了下面的查詢,但它顯示空白的結果,但我知道,有一條記錄在tmptable1
但不在tmptable2
以下是我的查詢。我在做什麼錯。查找不匹配之間的兩個SQL數據表
select * from tmptable1 where name not in(select name from tmptable2 where status='active')
喜我使用MS SQL – Mithu
u能請註明完整查詢 – Mithu
樣本數據可以是名稱,地址,城市,mobilno和國家 – Mithu