I want to aggregate my query by a certain field but I keep getting the error message as stated in the title.
My code is:
select cluid, step, count(*) as CNT--, json_value(e.event_payload, '$.type') as type
from VDS_OWNER.PROTO_BEAN_COUNTER_EVENTS_BASE2 e
where json_value(e.event_payload, '$.type') = 'page'
and e.STEP <> 'overview'
and ROWNUM <= 10000
group by e.CLUID
What am I doing wrong?