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 / kirankumar.vangeti

For the same example given in the answer 1

select studentname, subject, count(studentname) as count
from student
group by studentname, subject
having (count(studentname)>1);

above query will give the results like

STUD1 A 2

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does sql backup shrink transaction log?

911


What is procedure and function?

918


What is a native sql query?

971


What are the benefits of triggers?

1119


What are actual parameters and formal parameters?

1033


Show code of a cursor for loop.

999


how to select first 5 records from a table? : Sql dba

918


What is a mutating table and a constraining table?

1030


How do I run a sql query?

967


What is pivot table in sql?

1014


Which is faster truncate or drop?

978


Explain dml and ddl?

919


what are all different types of collation sensitivity? : Sql dba

927


What is a delimiter in sas?

976


What are the advantages of pl sql?

1070