How to remove duplicate rows from a table?.

Answer Posted / lova raju allumalla

delete from emp where rowid not in (select min(rowid) from
emp group by empno);

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what does plv msg allows you to do?

662


What is type and rowtype in pl sql?

531


How do you rank data in sql?

513


What is the difference between an inner and outer join?

532


What is rank () in sql?

527






how to check server status with 'mysqladmin'? : Sql dba

561


what is transaction? : Sql dba

527


What is time based sql injection?

484


What is the difference between distinct and unique in sql?

464


What is your daily office routine?

1803


how is myisam table stored? : Sql dba

602


How do rank () and dense_rank () differ?

514


What is the use of count (*) in sql?

538


Explain autonomous transaction.

632


how to get a list of indexes of an existing table? : Sql dba

510