I have the following select statement with a "case when" that has a clob field in the criteria.
I get a ORA-00932 Inconsistent datatypes: expected - got CLOB error.
CASE WHEN FROM_FIELD = 'REOPEN'
THEN
(SELECT MIN(MODIFIED_DATE)
FROM RECORDS
WHERE MODIFIED_VALUE = 'CLOSE')
ELSE CLOSED_DATE
END
[/CODE]
There is a lot more to the SQL above, but it is basically what I am looking for.
Looking for help with how to run this with the CLOB field (Modified_Value) in the criteria.