Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is replication id?

987


What is the difference between clustered and non-clustered indexes?

1128


How many sql databases can you have on one server?

1152


What is meant by user defined function?

1102


What do you mean by query optimization?

1050


Write a unique difference between a function and a stored procedure.

1052


What is pl sql and why it is used for?

1156


How do I find duplicates in sql?

980


what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

1064


Is sql scripting language?

1113


How do I partition in sql?

1020


What is a temporal data type?

1110


What is the process of copying data from table a to table b?

1133


What does the acronym acid stand for in database management?

1088


What are three advantages to using sql?

1069