EDIT: I am looking for a DISTINCT NUMERIC
while including a CLOB within the query.
I have two relations.
Relation One:
LOGID_NBR NUMBER (12)
APPID_NBR NUMBER (2)
EVENTID_NBR NUMBER (10)
KEYID_NBR NUMBER (8)
KEYVALUE VARCHAR2 (100 Byte)
ARGUMENTSXML VARCHAR2 (4000 Byte)
SENTINDICATOR CHAR (5 Byte)
RECEIVED_DATEDATE DATE sysdate
LAST_UPDATED DATE sysdate
TEXTINDICATOR VARCHAR2 (5 Byte)
UPSELL_ID VARCHAR2 (5 Byte)
GECKOIMAGEIND CHAR (1 Byte)
DELIVERYTYPE VARCHAR2 (30 Byte)
Relation Two:
LOGID_NBR NUMBER (12)
INPUT_ARGS CLOB
I have queried the relations as follows:
SELECT EVENTID_NBR, INPUT_ARGS
FROM RELATION_ONE, RELATION_TWO
WHERE RELATION_ONE.LOGID_NBR = RELATION_TWO.LOGID_NBR AND
EVENTID_NBR BETWEEN 143 AND 192 AND
EVENTID_NBR != 172 AND SYSDATE - 7 >= RELATION_ONE.LAST_UPDATED
ORDER BY EVENTID_NBR;
I am receiving the same EVENTID_NBR
in my result set too often and only interested in DISTINCT
results. However, adding the DISTINCT
keyword to the query as in:
SELECT DISTINCT EVENTID_NBR, INPUT_ARGS ...
produces the following error results:
[Error] Execution (8: 32): ORA-00932: inconsistent datatypes: expected - got CLOB
So, I started searching the net for how to solve this problem and found this and even this. What am I converting this CLOB to that enables a DISTINCT EVENTID_NBR
and its' associated CLOB
to be present within my result set?