比较 2 个不同表中的匹配列数据

发布于 2024-10-18 16:56:24 字数 1027 浏览 2 评论 0原文

我有 2 个表

TABLE1 和 TABLE2 处于访问状态。

两个表都有一个名为“电子邮件地址”的列。

我想要做的是编写一个查询来创建一个新表,其中包含 仅通过从两个表中找到的匹配电子邮件地址 他们的专栏

即。

===========================================================================
TABLE1           
Email Address    
[email protected]    
===========================================================================
TABLE2         
Email Address  
[email protected]   
===========================================================================
NEWTABLE3
Email Address  
[email protected] 
===========================================================================

我用的是Access 2010。 我知道我可能需要通过该列连接两个表 名称然后以某种方式进行比较?

I have 2 tables

TABLE1 and TABLE2 in access.

both tables have a column named 'Email Address'.

What I want to do is write a query which creates a new table, which holds
only the matching email address's that were found from both tables via
their columns

ie.

===========================================================================
TABLE1           
Email Address    
[email protected]    
===========================================================================
TABLE2         
Email Address  
[email protected]   
===========================================================================
NEWTABLE3
Email Address  
[email protected] 
===========================================================================

I'm using access 2010.
I understand I'll probably need a join on both tables via that column
name then someway to compare?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伴梦长久 2024-10-25 16:56:24

你有没有尝试过类似的东西

SELECT Table1.[EMAIL ADDRESS] INTO NewTable
FROM Table2 INNER JOIN Table1 ON Table2.[EMAIL ADDRESS] = Table1.[EMAIL ADDRESS];

Have you tried something like

SELECT Table1.[EMAIL ADDRESS] INTO NewTable
FROM Table2 INNER JOIN Table1 ON Table2.[EMAIL ADDRESS] = Table1.[EMAIL ADDRESS];
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文