I need some help with an INNER JOIN error, I am receiving a syntax error message (Missing Operator) and I don't know where I faulted.
SELECT A.CountOfJobName, A.Status, A.AccountRep, A.Company, A.JobName, A.DateYear, A.NewDateStamp AS STAGE_01, B.NewDateStamp AS STAGE_02, C.NewDateStamp AS STAGE_05
FROM T_002_Sales_Stage_Import_PT5_Table AS A
INNER JOIN T_002_Sales_Stage_Import_PT5_Table AS B ON (A.CountOfJobName = B.CountOfJobName) AND (A.AccountRep = B.AccountRep) AND (A.Company = B.Company) AND (A.Status = B.Status) AND (A.JobName = B.JobName) AND (A.DateYear = B.DateYear)
INNER JOIN T_002_Sales_Stage_Import_PT5_Table AS C ON (A.CountOfJobName = C.CountOfJobName) AND (A.AccountRep = C.AccountRep) AND (A.Company = C.Company) AND (A.Status = C.Status) AND (A.JobName = C.JobName) AND (A.DateYear = C.DateYear)
WHERE A.CURRENTSTAGE = '01-NEW LEAD'
AND B.CURRENTSTAGE = '02-CLIENT INTERVIEW'
AND C.CURRENTSTAGE = '05-DESIGN FILE PREP';
SELECT A.CountOfJobName, A.Status, A.AccountRep, A.Company, A.JobName, A.DateYear, A.NewDateStamp AS STAGE_01, B.NewDateStamp AS STAGE_02, C.NewDateStamp AS STAGE_05
FROM T_002_Sales_Stage_Import_PT5_Table AS A
INNER JOIN T_002_Sales_Stage_Import_PT5_Table AS B ON (A.CountOfJobName = B.CountOfJobName) AND (A.AccountRep = B.AccountRep) AND (A.Company = B.Company) AND (A.Status = B.Status) AND (A.JobName = B.JobName) AND (A.DateYear = B.DateYear)
INNER JOIN T_002_Sales_Stage_Import_PT5_Table AS C ON (A.CountOfJobName = C.CountOfJobName) AND (A.AccountRep = C.AccountRep) AND (A.Company = C.Company) AND (A.Status = C.Status) AND (A.JobName = C.JobName) AND (A.DateYear = C.DateYear)
WHERE A.CURRENTSTAGE = '01-NEW LEAD'
AND B.CURRENTSTAGE = '02-CLIENT INTERVIEW'
AND C.CURRENTSTAGE = '05-DESIGN FILE PREP';