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

Why primary key is required?

553


What is db journal file?

516


Explain exception handling in pl/sql?

528


What is the use of function "module procedure" in pl/sql?

665


How does one use sql*loader to load images, sound clips and documents? : aql loader

668






What is an inner join sql?

542


What is t sql used for?

548


How many sectors are in a partition?

557


How are functions and procedures called in PL/SQL?

586


What is a full join sql?

590


What is cursor in pl sql with examples?

478


Which one is faster ienumerable or iqueryable?

482


What is raid? How does it help storage of databases?

599


What is sql resultset?

527


what happens if null values are involved in expressions? : Sql dba

563