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 / lakshmi narayana

select * from emp a ,
(select empno,count(*) from emp group by empno having count
(*) > 1) b
where a.empno = b.empno

Is This Answer Correct ?    27 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between unique and primary key constraints?

1007


What are the limitations of sql express?

985


What is latest version of sql?

982


what are the differences between procedure-oriented languages and object-oriented languages? : Sql dba

970


What is type and rowtype in pl sql?

965


How would you reference column values before and after you have inserted and deleted triggers?

1016


Can a foreign key be a duplicate?

858


why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba

1041


Why cannot I use bind variables in ddl/scl statements in dynamic sql?

1133


what is an extent ? : Sql dba

1017


What are the two different parts of the pl/sql packages?

1025


what are all the different normalizations? : Sql dba

960


Does pl sql work in mysql?

919


How do I view output in sql developer?

1027


What are triggers in sql?

971