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
Is sql a backend language?
How do you add a column to a table?
Is drop table faster than truncate?
How to display Row Number with Records in Oracle SQL Plus?
what is a database transaction? : Sql dba
Difference between table function and pipelined function?
What is a string data type in sql?
Why trigger is used in sql?
What is the sql query to display the current date?
Is left join faster than inner join?
how to use regular expression in pattern match conditions? : Sql dba
What is the use of double ampersand (&&) in sql queries? Give an example
how to extract a unit value from a date and time? : Sql dba
How do I use google cloud in sql?
Can we use ddl commands in pl sql?