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 nvarchar max in sql?

1019


what are the non-standard sql commands supported by 'mysql'? : Sql dba

1120


Explain what is a subquery ?

1189


What is an index in sql with example?

975


How to add a column ‘salary’ to a table employee_details?

1012


Where is all the data on the internet stored?

1014


How can you load microsoft excel data into oracle? : aql loader

1174


what does the t-sql command ident_incr does? : Transact sql

1078


Which type of cursor is used to execute the dml statement?

958


Explain 3 basic parts of a trigger.

1324


What is difference between group by and partition by?

1062


What is sqlite format?

1200


Why join is faster than subquery?

1113


What is cold data?

964


Can a select statement fire a trigger?

1164