The following query is giving me the "(missing operator)"
syntax error. The desired output is a combination of data from tables [dbo_tbl*]
and views [vw_*]
. All of the keys I've used exist. Any ideas?
SELECT dbo_tbl_BOD.fpartno AS PartNumber,
dbo_tbl_BOD.frev AS RevisionIssue,
vw_DOCSwType.DocID,
vw_DRHRelfilter.Rev,
vw_DOCSwType.DocTypeDesc,
vw_DOCSwType.DocDesc,
vw_DOCSwType.DwgNoLegacy,
vw_DOCSwType.FileLocationOld,
vw_DRHRelfilter.DateCreated,
vw_DOCSwType.CreatedBy,
vw_DRHRelfilter.Rel,
vw_DRHRelfilter.RelLink
FROM dbo_tbl_BOD
LEFT JOIN vw_DRHRelfilter
ON ((dbo_tbl_BOD.DocID=vw_DRHRelfilter.DocID)
AND (dbo_tbl_BOD.frev=vw_DRHRelfilter.Rev))
LEFT JOIN vw_DOCSwType
ON (dbo_tbl_BOD.DocID=vw_DOCSwType.DocID)
ORDER BY PartNumber;
Ctrl+k
. More information about editing options here: stackoverflow.com/editing-help