I'm trying to use this code on Oracle and it errors out. The 'partition' statement is highlighted. How do I fix this ?
select
case when b.c_1 = 1 then b.workkey else null end workkey,
b.total_value total_value,
b.namekey namekey
from (select distinct workkey,total_value,namekey,
rownum() over (partition by workkey) as c_1
from report.arturdup
) b