sql - Syntax error (missing operator) in query expression 'Mainv1 Grouped.GroupMonth=V.GroupMonth -
i trying add column in query table. have added table reference recieving error message stating have syntx error (missing operator)in select expression select mainv1grouped.groupmonth, mainv1grouped.totalbk, v.errorcount, doc.docreviewerrors, v.errorcount/mainv1grouped.totalbk errorpercent (select sum(mainv1.number) totalbk, datepart("yyyy",[mainv1].[proddate],1,1) & "-" & right('0'& datepart("m",[mainv1].[proddate],1,1),2) groupmonth from mainv1 (mainv1.department) in('afs booking') and ((mainv1.function) in('agr - mre','agr - not mre','assump/partic','auto booked - b/c nre','auto booked - b/c re','bcu - mre','bcu - not mre','bodp','comm - mre','comm - not mre','comm fee','guidance line','guidance line / lease line','l/c secured','l/c unsecured',...