This seems like it should be very simple but I'm drawing a blank. I've tried a few different things, but none of them worked, nor did I expect them to.
I have two tables:
Files: FileNumber
Documents: FileNumber, DocType
There are a bunch of files and each file has a bunch of documents.
There are a bunch of different document types, for example (but not limited to):
P3, P4, A1, A2, A3, GX90, GX110, etc.
I want to make a select query that will return all files that do NOT have a document with doctype A2.
I realize this is more complicated than it seems. Might require multiple queries.
But I'm clueless as to how to proceed.
I have two tables:
Files: FileNumber
Documents: FileNumber, DocType
There are a bunch of files and each file has a bunch of documents.
There are a bunch of different document types, for example (but not limited to):
P3, P4, A1, A2, A3, GX90, GX110, etc.
I want to make a select query that will return all files that do NOT have a document with doctype A2.
I realize this is more complicated than it seems. Might require multiple queries.
But I'm clueless as to how to proceed.