是否可以在Access的联接条件中使用子查询? [英] Is it possible to use subquery in join condition in Access?
本文介绍了是否可以在Access的联接条件中使用子查询?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Postgresql中,我可以在联接条件下使用子查询
In postgresql I can use subquery in join condition
SELECT *
FROM table1 LEFT JOIN table2
ON table1.id1 = (SELECT id2 FROM table2 LIMIT 1);
但是当我尝试在Access中使用它
But when I try to use it in Access
SELECT *
FROM table1 LEFT JOIN table2
ON table1.id1 = (SELECT TOP 1 id2 FROM table2);
我收到语法错误.在Access中实际上是不可能的,还是我的错误?
I get syntax error. Is it actually impossible in Access or just my mistake?
我知道使用WHERE
可以获得相同的结果,但是我的问题是JOIN
在Access中的可能性.
I know that I can get the same result with WHERE
, but my question is about possibilities of JOIN
in Access.
推荐答案
查看全文