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 / arif jameel

First add an Identity Column in table

Alter table <tblname>
Add < New_columnID > int identity(1,1)

Delete from <tblname> where < New_columnID> in
(select max(New_columnID)from <tblname>
Group by <tbl_columnname>
having count (<tbl_columnname>)>1)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data profiling in sql?

1066


Difference between truncate, delete and drop commands?

1078


What is pl sql package?

1029


How do I view a table in sql?

999


Is sql port 1433 encrypted?

1017


What are the packages in pl sql?

1008


What are user defined functions?

1005


how to shutdown mysql server? : Sql dba

1091


how to create a new table in mysql? : Sql dba

979


What are the advantages of sql?

1051


What is the difference between inner join and outer join?

985


What is sql in java?

1071


Which query operators in sql is used for pattern matching?

953


How delete all records from table in sql?

975


How do you create an update query?

955