Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 联接操作中的语法错误-MS Access_Sql_Ms Access_Syntax Error_Vba - Fatal编程技术网

Sql 联接操作中的语法错误-MS Access

Sql 联接操作中的语法错误-MS Access,sql,ms-access,syntax-error,vba,Sql,Ms Access,Syntax Error,Vba,我正试图完成下面的查询,但在SELECT部分的JOIN操作中不断出现语法错误。我对这个地方很熟悉,如果你能帮忙,我将不胜感激。我看了这里贴的其他问题,但没有得到任何答案 SELECT [tblUSReqOutput.*], [tblUSReqOutput].[Job State], [tblUSReqs].[Ever in Status Applicant - Review Resume: Hiring Manager Review], [tblUSReqs].[Currently in S

我正试图完成下面的查询,但在SELECT部分的JOIN操作中不断出现语法错误。我对这个地方很熟悉,如果你能帮忙,我将不胜感激。我看了这里贴的其他问题,但没有得到任何答案

SELECT [tblUSReqOutput.*], 
[tblUSReqOutput].[Job State],
[tblUSReqs].[Ever in Status Applicant - Review Resume: Hiring Manager Review], 
[tblUSReqs].[Currently in Status Applicant - Review Resume: Hiring Manager Re], 
[tblUSReqs].[Ever in Status Candidate - Interview Process: Phone Screen], 
[tblUSReqs].[# Currently in Status Candidate - Interview Process: Schedule Ph], 
[tblUSReqs}.[# Currently in Status Candidate - Interview Process: Phone Scree], 
[tblUSReqs].[# Ever in Status Candidate - Interview Process: Interview], 
[tblUSReqs].[# Currently in Status Candidate - Interview Process: Schedule In], 
[tblUSReqs].[# Currently in Status Candidate - Interview Process: Interview], 
[tblUSReqs].[# Ever in Bin Candidate - Offer], 
[tblUSReqs].[# Currently in Bin Candidate - Offer], 
[tblUSReqs].[# Ever in Bin Candidate - Pre-hire], 
[tblUSReqs].[# Ever in Bin Employee], tblUSReqs.[# Ever in Bin Rejected], 
[tblUSReqs].[# of Openings], tblUSReqs.[# of Openings Remaining], 
[tblUSReqs].[# Currently in Status Candidate - Offer: Accepted], 
[tblUSReqs].[# Currently in Status Candidate - Pre-hire: Prepare for Hire], 
[tblUSReqs].[# Currently in Status Candidate - Offer: Extended], 
[tblUSHRorgchart].[Org Chart Level 02 Name] AS HROrgL2, 
[tblUSHRorgchart].[Org Chart Level 04 Name] AS HROrgL3, 
[tblUSHRorgchart].[Org Chart Level 05 Name] AS HROrgL4,
[tblUSHRorgchart].[Org Chart Level 05 Name] AS HROrgL5, 
[tblUSHRorgchart].[Org Chart Level 06 Name] AS HROrgL6, 
[tblUSHRorgchart].[Org Chart Level 07 Name] AS HRorgL7, 
[tblUSPrehires].[Person : Source - Category], 
[tblUSPrehires].[Person : Applicant Type], 
[tblUSPrehires].[Step], 
[tblUSPrehires].[Last Applicant - Applied], 
[tblUSPrehires].[Last Applicant - Review Resume], 
[tblUSPrehires].[Last Candidate - Interview Process], 
[tblUSPrehires].[Last Candidate - Offer], 
[tblUSPrehires].[Last Candidate - Pre-hire], 
[tblUSPrehires].[Last Employee],
Coalesce([Person : Source - Category],"No Source") AS [Source Category], 
Coalesce([Source],"No Source") AS [Hire Source], 
[Last Candidate - Pre-hire: Prepare for Hire]+7-Weekday([Last Candidate - Pre-hire: Prepare for Hire],2) AS [Pre-Hire Confirmed Weekending], 
Year([Last Candidate - Pre-hire: Prepare for Hire]) AS [Pre-Hire Year], 
Month([Last Candidate - Pre-hire: Prepare for Hire]) AS [Pre- Hire Month], 
[tblUSReqs].[Req Status], 
[tblUSPreHires].[Person : Full Name: Last, First], 
[qryApplicant numbers].[CountOfJob : AM Req ID] AS [# 2013Applicants], 
[tblUSReqs].[# Ever in Bin Employee], 
[tblUSReqs].[# of Openings Remaining]

FROM (tblUSReqOutput LEFT JOIN tblUSHRorgchart ON tblUSReqs.[Job Recruiter Login]) = tblUSHROrgchart.[Employee User ID] 
LEFT JOIN (tblUSReqs ON tblUSReqOutput.[ICIMS ID] = tblUSReqs.[AMZR Req ID] 
LEFT JOIN tblUSPrehires ON tblUSReqOutput.[ICIMS ID] = tblUSPreHires.[Job : AMZR Req ID]) 
LEFT JOIN TblSource ON tblUSPrehires.[Person : Source - Category] = TblSource.[Source Category]) 
LEFT JOIN [qryApplicant numbers] ON tblUSReqOutput.[ICIMS ID] = [qryApplicant numbers].[Job : AMZR Req ID])

WHERE ([tblUSReqOutput].[Job State]) Like "Eliminated") 
AND ([tblUSHRorgchart].[Org Chart Level 04 Name]) Is Not Null) 
AND ([tblUSPrehires].[Person : Full Name: Last, First]) Is Not Null) 
AND ([tblUSReqOutput].Approved)="Y")) 
OR ([tblUSReqOutput].[Org Chart Level 04 Name]) Is Not Null) 
AND ([tblUSReqs].[Req Status]) Like "eliminate*")
AND ([tblUSPreHires].[Person : Full Name: Last, First]) Is Not Null) 
AND ([tblUSReqOutput].[Approved])="Y")

它看起来像不匹配的括号

FROM (tblUSReqOutput LEFT JOIN tblUSHRorgchart ON tblUSReqs.[Job Recruiter Login]) = tblUSHROrgchart.[Employee User ID] 
LEFT JOIN (tblUSReqs ON tblUSReqOutput.[ICIMS ID] = tblUSReqs.[AMZR Req ID] 
LEFT JOIN tblUSPrehires ON tblUSReqOutput.[ICIMS ID] = tblUSPreHires.[Job : AMZR Req ID]) 
LEFT JOIN TblSource ON tblUSPrehires.[Person : Source - Category] = TblSource.[Source Category]) 
LEFT JOIN [qryApplicant numbers] ON tblUSReqOutput.[ICIMS ID] = [qryApplicant numbers].[Job : AMZR Req ID])
1号线和2号线有开始部分,但没有结束部分

第三行、第四行和第五行没有开始部分,但有结束部分


所以它们在总体上不匹配,并且应用不一致

看起来像是不匹配的括号

FROM (tblUSReqOutput LEFT JOIN tblUSHRorgchart ON tblUSReqs.[Job Recruiter Login]) = tblUSHROrgchart.[Employee User ID] 
LEFT JOIN (tblUSReqs ON tblUSReqOutput.[ICIMS ID] = tblUSReqs.[AMZR Req ID] 
LEFT JOIN tblUSPrehires ON tblUSReqOutput.[ICIMS ID] = tblUSPreHires.[Job : AMZR Req ID]) 
LEFT JOIN TblSource ON tblUSPrehires.[Person : Source - Category] = TblSource.[Source Category]) 
LEFT JOIN [qryApplicant numbers] ON tblUSReqOutput.[ICIMS ID] = [qryApplicant numbers].[Job : AMZR Req ID])
1号线和2号线有开始部分,但没有结束部分

第三行、第四行和第五行没有开始部分,但有结束部分


因此,它们在总体上不匹配,并且应用不一致,我在第7行看到一个
}
应该是
]
,在第7行看到一个
}
应该是
]