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 many ways to get the current time? : Sql dba

757


What do you mean by “trigger” in sql?

848


How would you pass hints to the sql processor?

752


how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba

745


Can you join a table to itself?

755


What is dense_rank in sql?

738


How to use boolean type in select statement?

794


What is coalesce in sql?

766


What is the purpose of the sql select top clause?

771


How to disable a trigger name update_salary?

963


what are integrity rules?

797


Does sql*plus also have a pl/sql engine?

814


Define implicit and explicit cursors.

853


what is collation? : Sql dba

851


How can we solve sql error: ora-00904: invalid identifier?

930