J
JimS
I feel like an idiot. I know i've done this before, but can't get it into my
head...
I need to find all records in a transaction table which have a discipline ID
that's not found in the Vendor's table of permitted disciplines (In other
words, a plumber puts in hours on an electrical job...it's a data entry
error.)
I thought I could do it with a compound select statement something like the
following:
SELECT VendorID, WorkerID, WorkDate, DisciplineID
FROM tblTransactions
WHERE tblTransactions.DisciplineID NOT IN (Select DisciplineID FROM
xrefVendorDiscipline WHERE xrefVendorDiscipline = tblTransactions.VendorID)
I get a syntax error on the above. Can't find the correct syntax. Any ideas?
head...
I need to find all records in a transaction table which have a discipline ID
that's not found in the Vendor's table of permitted disciplines (In other
words, a plumber puts in hours on an electrical job...it's a data entry
error.)
I thought I could do it with a compound select statement something like the
following:
SELECT VendorID, WorkerID, WorkDate, DisciplineID
FROM tblTransactions
WHERE tblTransactions.DisciplineID NOT IN (Select DisciplineID FROM
xrefVendorDiscipline WHERE xrefVendorDiscipline = tblTransactions.VendorID)
I get a syntax error on the above. Can't find the correct syntax. Any ideas?