【发布时间】:2016-04-27 15:39:54
【问题描述】:
我一直在四处寻找,但无法解决这个问题。
我有两个来自两个查询的表
SELECT [Account Combination].[Account Number] & [Account Combination].[Cost Center] & [Account Combination].Amount as Val1 FROM [Account Combination];
与
SELECT [Account Combination].[Account Number] & [Account Combination].[Cost Center] & [Account Combination].Amount AS Val1 FROM [Account Information] INNER JOIN ([Cost Center] INNER JOIN [Account Combination] ON [Cost Center].[Cost Center Number] = [Account Combination].[Cost Center]) ON [Account Information].[Account Number] = [Account Combination].[Account Number];
Table1 有 1800 行,Table2 有 1600 行。我想看看在 Table1 中找到哪些在 Table2 中没有找到,即 200。
我已经尝试过 Table1 NOT EXISTS Tabel2,但由于一直出现语法错误,因此无法使其正常工作。
感谢您的宝贵时间, 西蒙。
【问题讨论】:
-
正确标记您的问题以快速获得正确答案