I am runnig the below query to delete duplicate from my table, but its giving the below error:
with cte as (select name,address,designation, row_number() over(partition by name,address,designation order by name) rn from emp)
delete from cte where rn <>1;
select * from emp;
Error: ORA-00928: missing SELECT keyword
How to fix this?