I think this is the right subforum for this but let me know if it is not.
I have a select querry that works fine
Code:
SELECT DCN
FROM DW_MY_TB
WHERE (((RPT_EXCLUSION)=’N’) AND ((CONVERTED_CONTRACT)=999999999) AND
((MEMID)=99) AND ((PAIDDT)<20121031) AND ((FROMDT)<20101114) AND
((THRUDT)>20101114)) OR
(((RPT_EXCLUSION)=’N’) AND ((CONVERTED_CONTRACT)=999999999) AND
((MEMID)=99) AND ((PAIDDT)<20121031) AND ((FROMDT)>20101114) AND
((THRUDT)>20101231));
For efficiency reasons I want to run it as a pass through query. I've done this successfully in the past.
So I changed the type on the ribbon and set up my connection string as I've done before.
I changed the SQL to
Code:
SELECT DCN
FROM DW.MY_TB
WHERE (((RPT_EXCLUSION)=’N’) AND ((CONVERTED_CONTRACT)=999999999) AND
((MEMID)=99) AND ((PAIDDT)<20121031) AND ((FROMDT)<20101114) AND
((THRUDT)>20101114)) OR
(((RPT_EXCLUSION)=’N’) AND ((CONVERTED_CONTRACT)=999999999) AND
((MEMID)=99) AND ((PAIDDT)<20121031) AND ((FROMDT)>20101114) AND
((THRUDT)>20101231));
When I try to run it I get an error message saying "ORA-00920: Invalid Relational Operator"
Any hints what the trouble is?
Thanks in advance for your help.