【发布时间】:2014-02-10 19:30:06
【问题描述】:
我有一张带有“事件”的表格,第二张带有“笔记/电话”的表格和第三张带有“资产”的表格。
我正在尝试仅包含第一个表中未在第二个或第三个表中引用的记录...
在我写这篇文章时,我想到了另一个想法……无论如何,我们都非常感谢您的建议。
这是我目前所在的地方...
SELECT tblCustIncidents.EntryDateTime, tblCustIncidents.IncidentID, tblCustIncidents.LocID
FROM tblCustIncidents
WHERE (tblCustIncidents.IncidentID Not In (SELECT tblCustCalls.IncidentID
FROM tblCustCalls) OR tblCustIncidents.IncidentID Not In (SELECT tblIncidentAssets.IncidentID
FROM tblIncidentAssets)) AND (tblCustIncidents.EntryDateTime)>Date()-17;
【问题讨论】:
标签: sql ms-access ms-access-2007