I am trying to do a set difference as shown by this question, except I am doing it in Microsoft Access. The SQL query I am using is as follows:
SELECT FieldName
FROM CalParams_External
EXCEPT SELECT FieldName
FROM CalParams_Internal
UNION
SELECT FieldName
FROM CalParams_Internal
EXCEPT SELECT FieldName
FROM CalParams_External
When I run this however it throws an error:
Syntax error in FROM clause
I'd like to get this to work. What am I doing wrong here and how can I get this simple script to run?
EDIT
According to the comment below, JET does not support the EXCEPT
statement. I would like to break down the problem by finding the non-intersecting part of only one of the datasets using the MINUS
statement instead (which I believe is supported). Here's what I'm doing now:
SELECT FieldName
From CalParams_External
MINUS
SELECT FieldName
FROM CalParams_Internal
I'm still getting the same error regarding the FROM
clause though.