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 / sarath

I don't know the exact intention of the above answers, but I am making mine clear that to find the TOTAL DUPLICATED RECORDS and THEIR COUNT OF REPETITIONS, the Pseudo code is:

Select col1,col2,col3,....,COLn count(*) from <TN>
group by col1,col2,col3,....,COLn having count(*) > 1;

Wish everybody complies with it, its tested.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use distinct and count in sql query? Explain

982


What is a full join?

931


What are the popular database management systems in the it industry?

947


what is msql? : Sql dba

961


What are field types?

965


How many types of triggers are there in pl sql?

1033


What is the difference between the sql*loader and import utilities? : aql loader

1001


How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?

1068


What is mutating trigger?

992


Which data dictionary views have the information on the triggers that are available in the database?

1206


Does a user_objects view have an entry for a trigger?

978


what are the security recommendations while using mysql? : Sql dba

1075


How do I audit the sql sent to the server?

975


What is difference between procedure and trigger?

939


explain the options of myisamchk to improve the performance of a table. : Sql dba

973