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

how to delete duplicate rows from a specified table(only
single table)
how do you know which join is need to be used

Answer Posted / mkumar.it

delete <table_name> where rowid not in (select min(rowid)
from <table_name> group by <dup_rec_col>)

max(rowid) can also be used provided you have to retain the
latest value other wise min(rowid) is fine.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can a stored procedure call itself or recursive stored procedure? : Sql dba

960


what are the different tables present in mysql? : Sql dba

925


When can we use the where clause and the having clause?

969


Are subqueries better than joins?

922


Is subquery faster than join?

953


Explain mutating table error.

1132


How do I quit sql?

900


What is a pl/sql block?

1118


How do I start pl sql?

899


Why is nosql good?

978


how to rename an existing column in a table? : Sql dba

962


How to call a javascript function from pl sql?

1071


What is a delimiter in sas?

981


Explain the order of sql statement execution?

980


what are numeric data types? : Sql dba

1004