I am trying to use the following on oracle 11g:
select sum(ora_hash(distinct attribute) from table;
This gives me the error:ORA-00936: "missing expression"
I was expecting this to work, as for example sum(distinct attribute) from table; works fine.
Any advice?