Click here to Skip to main content
15,886,055 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello experts,
I am trying to execute a query, when I fill dataset from data adapter I got this following error:
ORA-00923: FROM keyword not found where expected

but this query execute successfully in sql.

what will be the possible reason and how to solve it?

my sql query is :

SELECT po.po_no, po.po_item, po.matnr, to_char(to_date(po.crdat_po,'YYYYMMDD'),'DD-MON-YYYY') as "crdat_po", po.plant_des, po.sloc, po.quantity, po.used_quantity, po.quantity - po.used_quantity as "balanced_qty", mt.section, mt.quality, mt.LENGTH,mt.description,case(po.po_type) when 'R' then 'ROAD' when 'W' then 'WAGON' end as "po_type", po.sap_quantity FROM ylpct_purord_dtl_dst po, t_material_master mt WHERE po.matnr = mt.material_no AND po.status = 'A' and po.po_no='0003107653' and po.po_item='00001' and po.ord_type='DO' and po.PLANT_SUP ='027' order by po.PO_NO, po.PO_ITEM
Posted
Updated 12-Nov-14 17:12pm
v3
Comments
Praveen Kumar Upadhyay 21-Nov-14 5:26am    
Execute the query in Oracle database console and post the exact error.

1 solution

Hi Praveen Kumar,
once i had experienced with the same error then i change the query.the syntax of that query is as follows

SQL
select * from (your query)t;


the above will resolve your issue


regards
Smart003
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900