write sub query for eliminating duplicate rows using
analytical function?
Answer Posted / korimantu
delete from table name where rowid not in(select max(rowid)
from group by last_name);
or
delete from table name where rowid>(select min(rowid) from
where a.last_name=b.last_name);
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is null in pl/sql?
How can one get sql*loader to commit only at the end of the load file? : aql loader
What are data types in pl sql?
What is a pragma statement?
How many joins in sql?
How to Execute a Package in PL/SQL.?
what is msql? : Sql dba
What does the base_object_type column shows in the user.triggers data dictionary view?
What is primary and foreign key?
what are the 'mysql' command line arguments? : Sql dba
What is a recursive stored procedure?
How can check sql version from command line?
What are tables in sql?
Can a select statement fire a trigger?
What is a left join?