I have enherited an Access-database with some queries. It is an account-database with information on the different accounts. Specifically IBAN-numbers for each account.
One of the queries is this, where we compare IBAN-numbers from the database with IBAN-numbers from the imported Id-table:
SELECT CAMTaccounts.IBAN, CAMTaccounts.Comment
FROM CAMTaccounts LEFT JOIN Id ON CAMTaccounts.[IBAN] = Id.[IBAN]
WHERE (((Id.IBAN) Is Null));
I thought I understood the SQL-language to some degree coming from SQL Server, but this statement, I cannot understand.
To me, this is equivalent to writing:
Select CAMTaccounts.*
From CAMTaccounts Left Outer Join Id On CAMTaccounts.IBAN = Id.IBAN
Where Id.IBAN Is Null
and this join, to me, does not make any sense.
But clearly, I am not understanding this correctly. I was hoping, that some of you could explain my flawed logic to me.
Thanks.