Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-00923:FROM KEYWORD NOT FOUND WHERE EXPECTED

438639Jan 22 2009 — edited Jan 22 2009
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 19 2009
Added on Jan 22 2009
3 comments
2,921 views