SELECT * FROM exclusivity
left join patent on (exclusivity.[Appl_Type]=patent.[Appl_Type] AND exclusivity.[Appl_No]=patent.[Appl_No] AND exclusivity.[Product_No]=patent.[Product_No])
left join products on (exclusivity.[Appl_Type]=products.[Appl_Type] AND exclusivity.[Appl_No]=products.[Appl_No] AND exclusivity.[Product_No]=products.[Product_No]);
The above query gives Syntax error
(missing operator) in query expression 'exclusivity.[Appl_Type]=patent.[Appl_Type] AND exclusivity.[Appl_No]=patent.[Appl_No] AND exclusivity.[Product_No]=patent.[Product_No]) left join products on (exclusivity.[Appl_Type]=products.[Appl_Type] AND exclusivity.[Appl_No]=products.[Appl_No] AND exclusivity.[Product_No]=products.[Product_No]);'
What could be possible reason?
MS Access has weird requirements for parentheses around joins:
SELECT *
FROM (exclusivity left join
patent
on exclusivity.[Appl_Type] = patent.[Appl_Type] AND
exclusivity.[Appl_No] = patent.[Appl_No] AND
exclusivity.[Product_No] = patent.[Product_No]
) left join
products
on exclusivity.[Appl_Type] = products.[Appl_Type] AND
exclusivity.[Appl_No] = products.[Appl_No] AND
exclusivity.[Product_No] = products.[Product_No];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.