write sub query for eliminating duplicate rows using
analytical function?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / vyshak
delete from table where rowid not in (select max(rowid) from
table group by all column names);
or
delete (dense_rank() over(partition by all column names))dn
from table where dn>2;
Is This Answer Correct ? | 4 Yes | 3 No |
What is the command used to fetch first 5 characters of the string?
How do I clear the screen in sql plus?
Give an example of Full Outer Join?
What can be a size of a pl/sql block? Is there any limit?
What is the difference between inner join and left join?
What does inner join mean?
What is serial sql?
Why do we use joins?
how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba
what is self-join? : Sql dba
What is Temp Table and type of temp table?
What are triggers and its uses?