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

What are the steps you can take to avoid “deadlocks”?

978


What is the parse query button used for?

1038


What were the latest updates to SQL Azure service?

111


Do you think BCNF is better than 2NF & 3NF? Why?

1278


What are the different types of subquery?

1158


Tell me in brief how sql server enhances scalability of the database system?

990


Which language rdl files made of?

130


What are the new data types are introduced in sql 2000?

907


How do I find my localdb version?

986


List out the differences between global and local temp tables in sql server?

1060


how many bits ip address consist of? : Sql server database administration

898


Give an example of SQL injection attack ?

1006


What is 3nf normalization form?

1111


How to convert character strings into numeric values?

1096


Which tools are available to manage SQL Azure databases and servers?

115