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 reterive duplicate value in SQL?

Answer Posted / justus

create table emp

empid empname
----- --------
101 a
102 b
103 a
104 c
105 a

select empname from emp group by empname having count(empname)>1

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different kinds of ssrs reports?

206


What is a table called, if it has neither cluster nor non-cluster index? What is it used for?

976


How many ways to create table-valued functions?

932


Define master database?

985


Explain different types of locks in sql server.

1008


What is a result set object returned by odbc_exec()?

950


How to check parameter value in stored procedure sql server?

910


How to manipulate data from one table to another table ?

907


What do you mean by data manipulation language?

946


What is an inner join?

912


what is a default tcp/ip socket assigned for sql server? : Sql server database administration

1000


How to set a database state to offline in ms sql server?

965


What are the differences between left join and inner join in sql server?

1038


Explain tablesample?

944


Explain the categories of stored procedure?

885