【问题标题】:Microsoft access: Search three tables and show unmatched item微软访问:搜索三个表并显示不匹配项
【发布时间】:2017-01-12 04:22:54
【问题描述】:

目前正在做一个学校项目,希望得到一些帮助。我有 3 个不同的表:

  1. 基金资料
  2. 电子邮件跟踪
  3. 会议

我正在尝试查找我们之前未通过电子邮件发送或遇到过的所有资金(来自资金数据表)(这些资金分别来自电子邮件跟踪和会议选项卡)。

由于我是新手,我尝试使用诸如此类的查询条件来解决它,但无济于事:

<>[Email tracking].[Fund name] Or <>[Meetings].[Fund name]

附件是我的查询截图以及我的关系视图。

感谢您的宝贵时间。

查询

关系

【问题讨论】:

    标签: sql database ms-access ms-access-2016


    【解决方案1】:

    你是不是在寻找类似的东西

    select * from fundtable where fundName not in  (select fundName from EmailTable)
    or fundName not in (Select fundName from emailTable)
    

    【讨论】:

    • 是的,我正在寻找类似的东西,我该怎么做?
    • 是的,我正在寻找类似的东西,我应该怎么做?我会是这样的Select * from [Fund data] where [Fund data]![Fund name] not in (select [Fund data]![Fund name] from [email tracking]) or [Fund data]![Fund name] not in (Select [Fund data]![Fund name] from [meetings]) 吗?我尝试将其插入查询部分,但它说他的表达式中子查询的语法不正确。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-07-15
    • 2020-11-17
    • 1970-01-01
    • 2013-10-07
    • 1970-01-01
    • 1970-01-01
    • 2023-02-17
    相关资源
    最近更新 更多