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 are three advantages to using sql?
What is the difference between cross join and natural join?
What are pl/sql cursor exceptions?
How to add, remove, modify users using sql?
what is recursive stored procedure? : Sql dba
State few characteristics of pl/sql?
Can a primary key be a foreign key?
What are functions in sql?
what are the advantages a stored procedure? : Sql dba
Is sql harder than python?
What is a join?
What is the importance of sqlcode and sqlerrm?
Why do we go for stored procedures?
what is myisam? : Sql dba
How to set up sql*plus output format in oracle?