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

What is data type in database?

933


What is scope of pl sql developer in future?

952


What is pl sql quora?

1073


How do you use a while loop in pl sql?

942


Is postgresql a server?

997


What are aggregate and scalar functions?

978


Is mariadb nosql?

994


How to return an array from java to pl/sql?

1063


What are the set operators in sql?

1032


Advantages and disadvantages of stored procedure?

1061


What are the 3 modes of parameter?

1103


How do you exit in sql?

1065


What is an index in sql with example?

920


What is basic structure of pl sql?

990


Which one is faster ienumerable or iqueryable?

866