你能让我知道我在这个查询中遇到语法错误的地方吗?查询包含三个表,所有表都使用左连接连接在一起。请提供解决方案...
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