So my goal here is to see if the certain conditions apply to data I have
I have this query:
select colA, colB
from tableA
where colB in ('catA','catB')
AND
colA in ('value1', 'value2', ..., 'value999')
or colA in ('value1000', ..., 'value1999')
or colA in ('value1000', ..., 'value1999')
or colA in ('value1000', ..., 'value1999')
The reason I have all the OR clauses is because I have so much data and can only do 1000 items in a list at a time.
So im trying to solve two problems here.
A. The query above doesn't work...it says
ORA-00936: missing expression
It works with just the first part of the list so I know something is wrong with the OR clause.
B. How do I modify the select statement to get a new Yes/No column if this condition is met:
where colB in ('catA','catB')
I get a Yes, otherwise a No?