how to delete duplicate rows from a specified table(only
single table)
how do you know which join is need to be used

Answer Posted / raghavendraprasad

delete from table_name where rowid not in (select max
(rowid) from table group by duplicate_values_field_name);

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

when is the use of update_statistics command? : Sql dba

498


Compare sql & pl/sql

602


What are the types of dbms?

545


Why trigger is used in sql?

525


Can we rollback delete command?

512






What are sql queries used for?

530


Hi how to import oracle sequence in Informatica? Please write stored procedure code that will import oracle sequence in Informatica SP transformation as per below scenario Oracle table product list Pro_id, pro_name 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights Now a new flat file with new product list needs to be added to oracle table product list with oracle sequence. flat file product Prono,pro_name, 1, 20 watt tube light 2, 30 watt tube light & target should be like 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights. 104, 20 watt tube light 105, 30 watt tube light thks reg suvarna joshi suvarnaatsuvarna@rediffmail.com

2064


What trigger means?

562


What is normalisation and its types?

544


How do I count rows in sql query?

489


What is trigger and how to use it in sql?

534


How many types of literals are available in pl sql?

512


What are two statement types in sql?

536


What is AUTH_ID and AUTH_USER in pl/sql ?

1688


What are system versioned tables?

549