write a query to delete similar records in same table

Answer Posted / manjula

DELETE FROM User_Details WHERE UserID=(
SELECT t1.UserID FROM
( SELECT UserID, count(*) AS Counts FROM User_Details GROUP
BY UserID HAVING count(*) > 1 )AS t1
)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to execute a stored procedure?

555


Why coalesce is used in sql?

469


what is the functionality of the function htmlentities? : Sql dba

515


What is recursive stored procedure?

591


What is a nested table in word?

525






What is the difference between delete and truncate statement in sql?

484


How do I run a sql query?

525


How do I run a query in pl sql developer?

552


What does data normalization mean?

525


What is posting?

596


What is varray in pl sql?

559


What is implicit cursor in pl sql?

533


Explain ddl statements in pl/sql?

570


how many ways we can we find the current date using mysql? : Sql dba

605


Which is faster view or stored procedure?

496