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 / 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

What can sql server reporting services do?

1109


what is sql profiler? : Sql dba

1041


How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000

2170


i have a column which may contain this kind of value: 123*67_80,12*8889_5,34*8_874 ,12*7_7 (can contain space before a comma, and this string length can be anything) now i want to split this value into two column like: column1: 123*67,12*8889,34*8,12*7 column2: 80,5,874,7 use function for this

1582


how are mysql timestamps seen to a user? : Sql dba

1139


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

1091


What is the size of partition table?

1048


What are transaction and its controls?

1040


How do I write a sql query in pgadmin 4?

982


Explain the insert into statements in sql?

1005


What is the difference between microsoft access and sql?

1023


What is the largest value that can be stored in a byte data field?

1012


who introduced sql?

1018


how to use regular expression in pattern match conditions? : Sql dba

1031


How do I save the results of sql query in a file?

978