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 is scalar function?

1095


What is a scalar value in sql?

1122


What is the main reason behind using an index?

1058


Is a foreign key always unique?

982


Is grant a ddl statement?

943


What are different types of queries in sql?

1172


What is substitution variable?

1095


What is sql and explain its components?

1116


Is and as keyword in pl sql?

1012


what are null values? : Sql dba

1013


what is a unique key ? : Sql dba

1144


What do you understand by pl/sql packages?

1103


what are sequences

1818


What is a sql*loader control file?

1341


How will you distinguish a global variable with a local variable in pl/sql?

1201