write sub query for eliminating duplicate rows using
analytical function?
Answer Posted / 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 |
Post New Answer View All Answers
What is a join?
Write a query to display the current date in sql?
What is pl sql in oracle?
What are the main features of cursor?
Does a primary key have to be a number?
What does select * from mean in sql?
Explain normalization and what are the advantages of it?
Is sqlite free?
how to get help information from the server? : Sql dba
What language is oracle sql developer?
Can you skip header records while loading? : aql loader
what is a composite key ? : Sql dba
How do you take the union of two tables in sql?
Write a query to find the names of users that begin with "um" in sql?
what are the types of join and explain each? : Sql dba