write a query to delete similar records in different tables
with same structure

Answer Posted / senthil

This done by Co-related sub-query:- based upon ROWID
uniqness this deletes the duplicate rows.

Delete from emp x where ROWID != (Select MIN(ROWID) from
emp y where y.empno = x.empno);

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is primary key in db?

517


What is composite data type in pl sql?

554


list out some tools through which we can draw e-r diagrams for mysql. : Sql dba

511


What are the basic techniques of indexing?

573


What is data type in database?

543






What is the difference between functions, procedures, and packages in pl/sql?

482


What is difference between inner join and cross join?

517


What is nvarchar max in sql?

578


What are the sql aggregate functions?

604


How to create your own reports in sql developer?

538


Which normal form is best?

513


Why do we use function in pl sql?

553


What are different types of triggers?

555


What are the types of records?

526


What is sql performance tuning?

492