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

Why are cursors used?

1177


How do I make sql search faster?

1044


How to select 10 records from a table?

1207


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

1146


what are the advantages and disadvantages of views in a database? : Sql dba

1074


what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba

1126


How do I run a sql query in pgadmin 4?

1000


What are synonyms in sql?

1019


What is sql procedures and functions?

1073


What is plpgsql language?

1142


how to dump a table to a file with 'mysqldump'? : Sql dba

1100


Is left join same as inner join?

1219


What is union and union all keyword in sql and what are their differences?

1157


Is pl sql a programming language?

1044


Can I create table without primary key?

1044