how to delete duplicate rows from a specified table(only
single table)
how do you know which join is need to be used

Answer Posted / kishor solanki @ 9904762204

create table newtable as select * from oldtable order by dupcol;
drop oldtable;
rename newtable to oldtable;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is sql server agent? : Sql dba

616


What is clustered index in sql?

608


Why primary key is required?

577


What is group function in sql?

553


how to enter binary numbers in sql statements? : Sql dba

503






what are the differences between require and include, include_once and require_once? : Sql dba

544


Explain what is rdbms?

599


How to select all records from the table?

620


Explain autonomous transaction.

648


what is primary key? : Sql dba

525


What is a constraint?

578


How does an execution block start and end in pl sql?

510


Does group by remove duplicates?

565


Explain the the delete statements in sql?

595


What is sqlcontext?

561