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

explain advantages of innodb over myisam. : Sql dba

829


How to rename a column in the output of sql query?

735


What are types of joins?

703


What is hibernate and its relation to sql?

787


Which command is used to delete a trigger?

956






What is database sql?

707


What are some emotional triggers?

749


How do you exit in sql?

815


What is sap sql anywhere?

680


How many unique keys can a table have?

738


Why is %isopen always false for an implicit cursor?

766


Why plvtab is considered as the easiest way to access the pl/sql table?

833


How can I change database name in sql?

703


What is varchar used for?

750


What is application trigger?

733