how to delete all duplicate records from a table using
subquery?

Answer Posted / sunil

delete emp where empno not in(select distinct empno from emp);

For example we have duplicates in empno column then write
query like above...whatever column u want u can write..

Is This Answer Correct ?    0 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any way to find out when one specific table/view/M-view is used last time. i.e. when one specific object is used in any SELECT statement.

857


When system tablespace is created?

601


Which environment variables are absolutely critical in order to run the OUI?

1651


Explain coalesce function?

624


What is data file?

612






What is coalesce function?

570


What happens to indexes if you drop a table?

696


How to start your 10g xe server?

594


What are internal user account in oracle?

567


What are the different oracle database objects?

584


can u plz provide me oca sql dumps please i need them

1466


Iam learning oracle developer 2000.. can anyone give me then tutorials sites or PDF related to developer 2000 please send me the details @ mak2786@gmail.com thanks Arun

1661


How data locks are respected in oracle?

571


What language does oracle use?

591


Can we protect our pl/sql source code?

572