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

select count(*),column_name from table_name group by
column_name having count(*)>1

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the different between now() and current_date()? : Sql dba

949


Difference between truncate, delete and drop commands?

1034


What is scope and visibility in PL/SQL?

1128


What is delete command in sql?

1060


When can we use the where clause and the having clause?

978


What are keys in sql?

953


How to get each name only once from an employee table?

1073


what are the 'mysql' command line arguments? : Sql dba

1097


Is it possible to remove child records without removing master table records...the two having pk,fk relationship?

1223


what is table? : Sql dba

1000


What does data normalization mean?

906


Name some usages of database trigger?

974


What is before and after trigger?

901


What does 0 mean in sql?

923


Can we insert in sql function?

1032