This is puzzling...at least to me.
SELECT
A FROM TABLE 1
WHERE A NOT IN
(
SELECT Field1 FROM B
)
AND A IN
(
SELECT Field1 FROM C
)
The second subquery
(SELECT Field1 FROM C)
is invalid. Field1 doesn't exist in table C. Invalid column name Field1. It does not run when run on its own, but when I run the entire query it returns results.
I'd like to better understand why this happens....