Delete duplicate records in the emp table.

Answer Posted / smriti

delete from tablename a where a.rowid>(select min(rowid)
from tablename b where a.columnname=b.columnname)

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I need a function for a train ticket reservation please answer it thanks in advance

758


Why do we use sqlite?

707


What are triggers and its types?

753


What is an emotional trigger?

695


Write the alter statement to enable all the triggers on the t.students table.

847






Explain alias in sql?

765


What are the different sql commands?

722


What is a join?

809


Can we use ddl statements in stored procedure sql server?

721


What are the types pl/sql code blocks?

794


What are the different schemas objects that can be created using pl/sql?

725


When is the update_statistics command used?

769


What is dml and ddl?

713


explain the difference between delete , truncate and drop commands? : Sql dba

743


What is benefit of creating memory optimized table?

702