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

Answer Posted / maninder

delete from abc where rowid not in (select max(rowid) from
abc group by column_name_with_dup.values.);

Is This Answer Correct ?    10 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to code performance tuning of oracle PL/SQL? can any body send me the perfect answer?

4663


Where do you use decode and case statements?

548


How to lock and unlock a user account in oracle?

609


What are oracle functions?

551


For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame ?

1554






How can Oracle users be audited?

601


Hi Can any one tell me what are the API's used in requisition import.

1481


Explain an index?

656


How to specify default values in insert statement using oracle?

556


If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...

1726


How to use "while" statements in oracle?

729


Which are the five query types available in oracle?

524


What suggestions do you have to reduce the network traffic?

538


Differentiate between pre-select and pre-query?

614


HI Friends Myself Manoj,i am from bengaluru.i have 1 yr of exp in PLSQL but not upto the mark..now attending interviews but m not able to clear even 1 round..i have attended 3 interviews till today.purpose of writing this query is,i want to know the intreview topics that interviewer going to ask frequently,mainly SCENARIO based questions.IF anybody have any PLSQL projects please give it to me,it will helps me alot.Thanks for your patience.

985