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 only duplicate values in a table

Answer Posted / ravi patel

for the table emp
ID NAME
1 ravi
2 umang
1 ravi
3 nishant

now fire the query as beleow

select * from emp group by id,name having count(id)>1 and
count(name)>1;

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is t sql in sql server?

1055


What is range partitioning?

948


What is the purpose of a sql?

962


When to use inner join and left join?

937


what are myisam tables? : Sql dba

1016


Can function return multiple values in sql?

1031


What is the difference between sql and isql*plus?

1073


What is record variable?

961


Why is sql better than hql?

971


what is a field in a database ? : Sql dba

1043


Can we rename a column in the output of sql query?

977


what are date and time data types? : Sql dba

962


How do I add a primary key to a table?

1028


Define tables and fields in a database

1113


What is t-sql? : Transact sql

968