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 retrieve duplicate rows in a table?
How to delete the duplicate entries in a table?

Answer Posted / anil kumar karasi

1.
Select from <table name A>
where rowid > (select min(rowid) from <table name B>
where A.keyvalues=B.keyvalues);


2.
Delete from <table name A>
where rowid > (select min(rowid) from <table name B>
where A.keyvalues=B.keyvalues);

Is This Answer Correct ?    12 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know concepts and capabilities of sql server?

1005


Differentiate between sql temp table vs table variable?

828


What are unicode character string data types in ms sql server?

1139


How we create SQL Server 2005 Reporting Services ? Give me Sample

1937


How does Report Builder support Analysis Services cubes?

147


How to use group functions in the select clause in ms sql server?

991


What is ms sql server triggers?

942


How to insert multiple rows with one insert statement in ms sql server?

1053


Explain “@@rowcount” and “@@error” in sql server?

1000


Which operator do you use to return all of the rows from one query except rows are returned in a second query?

942


What do you think of this implementation? Can this be implemented better?

874


Can binary strings be used in arithmetical operations?

881


what are user defined datatypes? : Sql server database administration

922


What is openrowset sql server?

1057


Explain how you can configure a running aggregate in SSRS?

154