|
我有2个表
查询表一的 reportname,path内容
要求,返回 reportname 不包含在 表二 reportname的列中,表二的列为username=xxx,
我无论用<>,not in都是取不到正确的结果
而,IN , = 可以取到相反要求的正确结果。。怎么搞啊
SELECT dbo.ReportList.*
FROM dbo.ReportList INNER JOIN
dbo.UserReport ON dbo.ReportList.ReportName <> dbo.UserReport.ReportName |
|