I know I must be missing something incredibly elementary here, but I can't for the life of me determine where my "syntax error" is coming from. Can anyone help me with this one?
The following query gives me the überhelpful ""Syntax error in JOIN operation" message, and highlights the first "reqts" table that I'm trying to join with my "references" table.
Thanks in advance for any help!
Code:
SELECT references.incomingref
, incoming.reqt_text
, outgoing.cRef AS [Child Requirement]
, dispositions.shortdisposition
, outgoing.reqt_text AS [Child Requirement Text]
, outgoing.notes AS [Disposition Notes]
FROM ((
references
INNER JOIN reqts AS outgoing
ON outgoing.reqtID = references.outgoingref
)
INNER JOIN reqts AS incoming
ON incoming.reqtID = references.incomingref
)
INNER JOIN dispositions
ON dispositions.dispositionID = reqts.disposition
WHERE outgoing.disposition = (SELECT dispositionID FROM dispositions WHERE shortdisposition = 'NONCOMPLIANT');