write a query to delete similar records in same table

Answer Posted / balaji

delete from sampletable where ids in(select ids from
sampletable group by ids having count(ids)>1)

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you optimize a stored procedure query?

561


How can use stored procedures in sql?

572


Explain the select statement in sql?

608


what are null values? : Sql dba

536


What is the maximum number of triggers, you can apply on a single table?

537






What is the difference between the repeatable read and serializable isolation levels? : Transact sql

526


What is aggregate function in sql?

529


explain mysql aggregate functions. : Sql dba

541


What is a primary key sql?

557


Explain architecture of sql server notification services?

616


What are the ddl commands?

527


How does index help in query performance?

556


Which join is default?

513


What is substitution variable?

571


How to use sql statements in pl/sql?

574