このクエリで構文エラーに直面している場所を教えてください...クエリには3つのテーブルが含まれており、すべてが左結合を使用して結合されています.Plzは解決策を提供します...
select a.ACNo as CLIENTACCOUNTNO,
b.CLIentSHoRTCoDE as CLIENTCODE,
a.Client as CLIENTNAME,
a.SECURITY_TYPE as SECURITYTYPE,
c.SECMSECNO as SCRIPCODE,
a.EXCE as EXCH,
a.SEC_IDENT as SECIDENT,
a.SECURITY_NAME as SECURITYNAME,
a.INST_TYPE as INSTTYPE,
a.SECURITY_CCY as SECURITYCC,
a.SECURITY_PRICE as SECURITYPRICE,
a.PRICE_DATE as PRICEDATE,
a.LOCATION as LOCATION,
a.LOCATION_STATUS as LOCATIONSTATUS,
a.HOLDINGS as HOLDINGS,
a.UNITS as UNITS,
a.SALEABLE_STOCK as SALEABLESTOCK,
a.FACE_VALUE as FACEVALUE,
a.CCY_PORTFOLIO_VALUE as CCYPORTFOLIOVALUE,
a.PORTFOLIO_VALUE_ININR as PORTFOLIOVALUE,
a.MATURITY_DATE as MATURITYDATE,
a.PREV_COUPON_DATE as PREVCOUPONDATE,
a.NEXT_COUPON_DATE as NEXTCOUPONDATE,
a.OPTION_DATE as OPTIONDATE,
a.DEADLINE_DATE as DEADLINEDATE,
a.EVENT_TYPE as EVENTTYPE
from CRS_BCP_Holding as a left join
AccountMaster as b on Cint(a.acno) =b.CashAcNo left join InstrumentMaster as c on
a.SEC_IDENT=c.ISIN and c.status<>'c' and c.bse_Code='b'
where ((a.OPTION_DATE between 8/04/2013 and 8/04/2013 ) and (a.LOCATION_STATUS='Surrendered for CA' OR a.EVENT_TYPE='PART'))
order by b.CLIentSHoRTCoDE,c.SECMSECNO,a.LOCATION,a.LOCATION_STATUS
このクエリは Access 2007 で使用されます