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 select the duplicate rows from a table?

Answer Posted / mahesh vasudevan

Select <col-name> from table A1 and A2
where A1.Col = A2.Col.

This should be an inner join. Then you are finding the
intersection of the key values...if you want to find the
duplicates for all matching column of the rows code AND
condition for join with all those columns.....by the way
there are different easy ways to find it. but this is one of
the way.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why select is not preferred in embedded sql programs?

1307


DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?

2857


Can there be more than one cursor open for any program?

1170


Explain about rct.

1092


What is the use of dclgen in db2?

1085


Why do chiropractors use drop table?

1112


Outputs of explain are with matchcols = 0. What does this signify?

1062


What does db2 stand for?

1033


Give the name of some fields form sqlca.

1089


What is a db2 table?

1022


How to fetch the last row from the table in SQL (db2)?

1657


What is difference between rollback and commit?

1165


What is the use of value function?

1153


What is the role of data manager in the db2 database?

1111


What is concurrency?

1238