write a query to delete similar records in particular
fields(columns) in different tables

Answer Posted / satyam kumar

Hi,

I have manipulated Khandu Shinde answer because it will
delete complete row.

delete from emp where rowid not in ( select max(rowid) from
emp group by empno having count(redundantcolumnName) > 1)

Note: work only with Oracle.

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the parameter modes supported by pl/sql?

526


how to load data files into tables with 'mysqlimport'? : Sql dba

512


What's the difference between a primary key and a clustered index?

504


What is the maximum rows in csv?

481


What is latest version of sql?

518






What is 19 null in sql?

526


Can dml statements be used in pl/sql?

568


Explain unique key in sql.

554


How do you write a complex sql query?

576


How to write a query to show the details of a student from students table whose

535


how to select first 5 records from a table? : Sql dba

503


What is the advantage of index in sql?

532


explain advantages of myisam over innodb? : Sql dba

595


What does t sql mean?

525


Why is partition used in sql?

540