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

delete from <tablename> rowid not in (select max(rowid)
from <tablename> group by <col.name where there are
repeating records>);

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I truncate a word?

1079


Name the operator which is used in the query for pattern matching?

935


what is the difference between join and union? : Sql dba

1104


Can %notfound return null after a fetch?

1050


How we can update the view?

1043


How to start oracle sql developer?

1024


How does cross join work in sql?

1007


How many tables can a sql database have?

971


What is sqlca in powerbuilder?

1000


What is rowid in sql?

975


What is rollback?

1105


how to increment dates by 1 in mysql? : Sql dba

970


How do you copy a table in sql?

1059


What is file based approach?

933


What are the dml statements?

1137