ORA-00923:FROM KEYWORD NOT FOUND WHERE EXPECTED
438639Jan 22 2009 — edited Jan 22 2009I have nade a oracle ODBC TO MS-EXCEL.While writting query in microsoft query editor I got the error msg
ORA-00923:FROM KEYWORD NOT FOUND WHERE EXPECTED
The following query runs fine on sql plus editior
wht could be the reason ,pls guide me
select ORDR_H.ORDERDT,ordR_h.orderno,ordr_h.partycd "CODE",
DECODE (PARTY_M.PARTY_TY,1,'TRADE',2,'NTR'),
party_m.party_n1,c1.citee_nm "Stockist Place",
c.citee_nm "CONSIGNEE PLACE"
from citee_m c,citee_m c1,ordr_h,ordr_d,party_m
where
ordr_h.orderno=ordr_d.orderno
and c.citee_cd=ordr_h.destncd
and c1.citee_cd=party_ct
and ordr_h.partycd=party_m.party_cd
and ordr_h.orderdt>='01-jan-09'
order by 2,3