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
How does cross join work in sql?
What are inner and outer joins examples of both?
Explain about various levels of constraint.
How do I kill a query in postgresql?
Can you select everything, but 1 or 2 fields, without writer's cramp?
What is the use of double ampersand (&&) in sql queries? Give an example
Is nosql relational?
How can you get sql*loader to commit only at the end of the load file? : aql loader
Explain the select statement in sql?
What is the use of prepared statement?
What is sql not null constraint?
How delete all records from table in sql?
how can we repair a mysql table? : Sql dba
Why are indexes and views important to an organization?
What does truncate mean in sql?