“不在”的问题子查询 [英] Problem with "Not In" Subquery

查看:73
本文介绍了“不在”的问题子查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在MS Access中使用子查询时遇到问题。子查询的目的是创建一个在过去6个月内接受过医生检查并将其从主查询中排除的人员列表。这就是我提出的:

展开 | 选择 | Wrap | 行号

解决方案

行数是多少行子查询返回?

展开 | 选择 | Wrap | 行号


子查询返回65行

尝试为子查询使用不同的别名。现在,主要查询的TI别名与子查询的TI重叠,这可能是问题所在。或者完全不使用子查询的别名。


I have a problem with using a subquery in MS Access. The purpose of the sub-query is to create a list of people who have had doctor exams in the past 6 months and exclude them from the main query. This is what I came up with:

Expand|Select|Wrap|Line Numbers

解决方案

How many rows does the subquery return?

Expand|Select|Wrap|Line Numbers


The subquery returns 65 Rows


Try using a different alias for the subquery. Right now the main query''s TI alias overlaps with the subquery''s TI, that may be the problem. Or leave off the subquery''s alias altogether.


这篇关于“不在”的问题子查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆