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 string functions in sql?

1253


Can we use delete in merge statement?

1049


Explain what is a database?

1091


How can you create an empty table from an existing table?

1086


What is mutating trigger?

1029


tell us something about heap tables. : Sql dba

1105


Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?

1078


Which software is used for pl sql programming?

994


Explain scalar functions in sql?

1077


What does seeding a database mean?

976


How do I view a view in sql?

957


What are analytical functions in sql?

1039


What is rowid in sql?

993


what is 'mysqlshow'? : Sql dba

1035


How can you fetch common records from two tables?

1066