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
Which certification is best for sql?
What is the maximum number of triggers, you can apply on a single table?
What are pl/sql packages?
Is sql free?
What are the different ways to optimize a sql query?
Can we use commit inside a trigger?
What are the built in functions of sql?
What are the parts of a basic sql query?
Explain what is a subquery ?
What is sql and db2?
What is difference between joins and union?
How do you declare a constant?
What is the most common sql injection tool?
Can I create table without primary key?
What is sqlcommand?