我命名为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