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

Is nosql relational?

943


What is the difference between nvl function, ifnull function, and isnull function?

1113


Why is partition used in sql?

1123


What is the difference between sql and mysql?

1118


what are the advantages and disadvantages of cascading style sheets? : Sql dba

1060


What is a parameter query?

1084


how to drop an existing view in mysql? : Sql dba

1061


how to drop an existing index in mysql? : Sql dba

1069


how do you tune the slow running queries in oracle db , explain the methodology

2799


Can we perform dml on view?

1044


What are the types of views in sql?

1103


How we can update the view?

1049


Does truncate remove indexes?

1034


What are the types of sql commands?

1103


What operating systems are supported by oracle sql developer?

966