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

What is the execution plan in sql?

1009


Is t sql a programming language?

1052


What is varchar used for?

1072


What does an inner join do?

1171


What is fmtonly in sql?

1070


Why commit is not used in triggers?

1031


what is 'mysqlshow'? : Sql dba

1014


Is left join same as join?

978


Explain commit, rollback and savepoint.

988


What are the two parts of design view?

1011


what are the different index configurations a table can have? : Sql dba

991


what are date and time data types? : Sql dba

974


How do you create a unique index?

1041


how to use myisamchk to check or repair myisam tables? : Sql dba

964


How many commands are in sql?

1059