Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

syntax error in join operation access

Tags:

sql

ms-access

SELECT *
FROM 
(table1 FULL OUTER JOIN [FY14 PLEDGE_TOTAL]
ON table1.[Id] = [FY14 PLEDGE_TOTAL].[SID]);

I don't know why I'm getting this error on Access. When I remove the parentheses after 'FROM', I get syntax error on From clause. Please advise. Thanks!

like image 758
Vikrant Avatar asked Apr 07 '26 19:04

Vikrant


1 Answers

Access does not support OUTER JOIN. You need the variant which would be LEFT JOIN or RIGHT JOIN with an Is Null criteria on the field where the data do not exist.

Here is Microsoft's take on the issue : http://office.microsoft.com/en-gb/access-help/creating-an-outer-join-query-in-access-HA001034555.aspx

Or something much helpful : http://www.databasejournal.com/features/msaccess/article.php/3516561/Implementing-the-Equivalent-of-a-FULL-OUTER-JOIN-in-Microsoft-Access.htm

like image 164
PaulFrancis Avatar answered Apr 10 '26 10:04

PaulFrancis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!