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
How to increment dates by 1 in oracle?
Please explain drop constraint oracle?
What is an oracle database?
What is Redo Log Buffer in Oracle?
1) What is ONE_SIZE_FITS_ALL approach? 2) Explain the Common & Variable Header of DATA FILE? 3) What are the Drawbacks to using OMF DB? and the Advantages? 4) List out the Advantages of Undo T.spaces over the Undo SEGMENT? 5) Difference between the Temporary tablespace with TEMPFILE and the Tablespace with TEMPORARY Keyword? 6) What are the situation extents are freeing for reuse.
How to grant create session privilege to a user in oracle?
How to pass parameters to procedures?
What is the effect of setting the value "all_rows" for optimizer_goal parameter of the alter session command? What are the factors that affect optimizer in choosing an optimization approach?
What are the differences between primary key and unique key?
Why does for update in oracle 8 cause an ora-01002 error?
How to use null as conditions in oracle?
Explain integrity constraints?
What is recovery manager(rman) backup in Oracle?
what is the difference between restoring and recovering?
material view and view disadvantages?