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

what is sql in mysql? : Sql dba

1199


Explain what is an index?

1059


What is the use of & in pl sql?

1047


Can we delete column in sql?

1103


how can we destroy the cookie? : Sql dba

1014


How do you rank data in sql?

1009


Explain the difference between 'between' & 'and' operators in sql

1004


How long does it take to learn pl sql?

1064


How delete all data from all tables in sql?

951


Can ddl statements be used in pl/sql?

1146


What are the possible values for the boolean data field?

964


What are all the common sql functions?

1035


What is a data definition language?

1139


What is the syntax and use of the coalesce function?

1176


What is query execution plan in sql?

1193