I've got the following SQL Server query and can not for the love of God get this to work in MS Access.
select
U.voorstellingnummer, U.uitvoeringnummer, U.zaalnaam, S.rijnummer, S.stoelnummer
from
Uitvoering as U
inner join
Stoel as S on U.zaalnaam = S.zaalnaam
where
U.voorstellingnummer = 4 AND U.uitvoeringnummer = 1
AND
-- (S.rijnummer, S.stoelnummer) not in (select(B.rijnummer, B.stoelnummer)
('rij '+ cast(S.rijnummer as varchar(3)) + ' stoel ' + cast(S.stoelnummer as varchar(3))) not in
(select('rij '+ cast(B.rijnummer as varchar(3)) + ' stoel ' + cast(B.stoelnummer as varchar(3)))
from Bezetting as B
where B.voorstellingnummer = 4 AND B.uitvoeringnummer = 1)
I've been add it for a couple of days now but it keeps giving me syntax errors on the first AS.
The query works perfect in SQL Server. What am I doing wrong?
Thanks for your time.