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

Does truncate release storage space?

1082


What is full join?

961


How to start the command-line sql*plus?

1058


What is the meaning of disabling a trigger?

1182


How long does it take to learn pl sql?

1064


Explain how can you save or place your msg in a table?

1029


What are the limitations of sql express?

1071


how to see the create table statement of an existing table? : Sql dba

1019


What does select count (*) mean in sql?

1022


Enlist some predefined exceptions?

1063


what are all different types of collation sensitivity? : Sql dba

982


How can we find duplicate records in a table?

948


Are stored procedures faster than queries?

948


How do I enable sql encryption?

1035


What is primary key in db?

1011