I have a query and I am checking for a string in the where COURSE_NUMBER
clause
select * from CC cc inner join AB_COURSE_ENROLL ab on cc.DCID=ab.LOCAL_ID where cc.STUDENTID=34700 and cc.COURSE_NUMBER IN (TO_CHAR(FOD1050));
The problem is that if I put FOD1050
in single quotes the query works but in my project I cannot enclose FOD1050 in single quotes or double. Is there any other way to tell the compiler that the incoming value is in string?
I am using Oracle