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 / lakshya

SELECT * FROM table_name
WHERE ROWID NOT IN (SELECT MIN(ROWID) FROM table_name GROUP
BY table_columns);

Is This Answer Correct ?    9 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you fetch common records from two tables?

586


What is the purpose of a sql?

520


What is the clause we need to add in function body to return variable?

538


What is a heap in sql?

524


What is set serveroutput on in pl sql?

565






What is a clob in sql?

561


What version is sql?

549


what is an extent ? : Sql dba

580


What will you get by the cursor attribute sql%notfound?

588


Why do we create views in sql?

549


What is the difference between distinct and unique in sql?

466


What is the difference between left and left outer join?

512


How does cross join work?

498


Can we use ddl statements in stored procedure sql server?

511


What is trigger in pl sql with examples?

519