我不确定为什么我的查询导致我遇到以下错误:
The SQL statement could not be executed because it contains ambiguous outer joins. To force one of the joins to be performed first, create a separate query that performs the firm join and then include that query in your SQL statement.
这是我的查询,我只看到一个联接:
SELECT PC.[Mother_Board_Name] & ',' & PC.[Mother_Board_Manufacturer]
FROM PersonalComputerHardware PC, Registers R
WHERE ',' & R.[Names].Value & ',' LIKE '*,' & PC.[Computer_ID] & ',*';
顺便说一句,R.Names.Value是对多值字段的引用。我不理解此错误消息,因为我仅使用一个Cross JOIN
答案 0 :(得分:0)
尝试一下:
SELECT PC.Mother_Board_Name & ',' & PC.Mother_Board_Manufacturer
FROM PersonalComputerHardware PC
INNER JOIN Registers R ON R.Names LIKE '*,' & PC.Computer_ID & ',*'
假设您的实际逻辑正确,这应该可以工作。
但是您的逻辑可能不正确。充其量只能匹配中间的Computer_ID
(而不是第一个或最后一个),除非您的Names
的开头和结尾都带有逗号。