How to use GROUP BY on a CLOB column with Oracle?
问题 I'm trying to combine the GROUP BY function with a MAX in oracle. I read a lot of docs around, try to figure out how to format my request by Oracle always returns: ORA-00979: "not a group by expression" Here is my request: SELECT A.T_ID, B.T, MAX(A.V) FROM bdd.LOG A, bdd.T_B B WHERE B.T_ID = A.T_ID GROUP BY A.T_ID HAVING MAX(A.V) < '1.00'; Any tips ? EDIT It seems to got some tricky part with the datatype of my fields. T_ID is VARCHAR2 A.V is VARCHAR2 B.T is CLOB 回答1: I'm very familiar with