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 only in a Table?
Suppose if a Table Name is "Education". It consists of
multiple columns. Then if we insert rows into this table
with duplicate records then how can we retrieve only
duplicate records from that table?

Answer Posted / dev

SELECT * FROM TAB1 A WHERE A.ROWID > ANY
(SELECT B.ROWID FROM TAB2 WHERE A.COL1=B.COL1)

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 the usage of the distinct keyword?

1274


What is sql dialect?

1174


Write a sql query to get the third highest salary of an employee from employee_table?

1116


What is the difference between having clause and where clause?

1110


What does stand for in sql?

1022


What is trigger in sql and its types?

1109


Why do we use %rowtype & %type in plsql?

1096


How to handle bulk data?

1364


How do you delete duplicates in sql query using rowid?

989


What is trigger in sql?

1156


What are the two different parts of the pl/sql packages?

1138


How many joins in sql?

1055


How do you determine the current isolation level? : Transact sql

1203


Are stored procedures faster than queries?

990


Explain the select statement in sql?

1181