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

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

is the correct answer

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are all the different normalizations?

997


What is pl sql variable?

956


How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000

2128


Can we join more than 2 tables in sql?

972


How does left join work in sql?

962


what is foreign key? : Sql dba

987


What is a function in oracle pl sql?

1003


Explain the difference between rename and alias?

986


What is the command used to fetch the first 5 characters of a string?

1178


Inline the values in PL/SQL, what does it mean.?

1179


What is coalesce in sql?

1004


How do I create a memory optimized filegroup?

917


What is cursor in pl sql with examples?

976


What is trigger in sql and its types?

1017


what is the use of double ampersand (&&) in sql queries?

1137