How will you delete duplicate records from a table?

Answer Posted / venkat

delete from emp where ecode IN ( select ecode from emp group by ecode having count(*) >1 )

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give a brief description of db2 isolation levels?

796


What are host variables in db2?

814


What is dbrm library?

794


What is the use of with ur in db2?

807


Explain about cursor stability?

791


What is cobol db2?

741


What is db2?

928


How to execute stored procedures?

854


What is the physical storage length of time data type?

889


How can you do the explain of a dynamic sql statement?

831


What is an instance database?

815


What is the clustering index in the db2 database?

754


How do I add a column in db2?

791


How do I import a csv file into db2?

752


While unloading huge amount of data from table. Suddenly job failed some error. Imagine 1M data unloading, In that 90% data unloaded only 10% left, So if want to unload the rest 10% what needs to be done? Whether do i need to start from top or anything ?

2092