c# - OracleCommand Class and SqlScript Issue -


i trying run following query using oraclecommand class.

but error:

"ora-00920 invalid relational operator".

i sure date values. not know how fix it. help?

  select s.store_code,count(i.invc_sid) count    invoice_v    left join store_v s       on i.sbs_no , i.store_no = s.store_no    where(i.created_date between to_date('02//01//2014','mm//dd//yy')         , to_date('02//28//2014','mm//dd//yy'))          , i.proc_status not in ('131072','65536','147456', '81920')         , i.invc_type = 0 , i.sbs_no = 6     group  s.store_code"; 

thanks

your problem in following line

left join store_v s       on i.sbs_no , i.store_no = s.store_no  

here, after 'on' have written i.sbs_no .

there should after compare

on i.sbs_no = 'something' , i.store_no = s.store_no 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -