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 foreign key? : Sql dba

1049


How do you declare a variable in pl sql?

1027


Explain the methods used to protect source code of pl/sql.

1019


what is myisam? : Sql dba

1084


What is the mutating table and constraining table?

1026


What are types of joins?

965


How to run sql statements through the web interface?

1041


What is compilation error in pl sql?

976


Which are sql * plus commands?

1127


Which join is like inner join?

1027


What is the difference between a procedure and a function?

1111


What is the difference between local and global temporary table?

1046


Explain the types of joins in sql?

1035


What is the difference between nvl function, ifnull function, and isnull function?

1107


What is the requirement of self-join?

1132