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...

i want only duplicates rows from coloumn
ex. emp_id(colomn name)1,1,2,3,3,4,5,5.

so i want only duplicates no.

Answer Posted / v rajkumar

select Emp_Id from Employee group by Emp_Id having count(*)
>1

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you tell if a database object is invalid?

1012


How can you insert values in multiple rows using one Insert statement?

1034


Can we create clustered index on composite key?

978


How to select some specific rows from a table in ms sql server?

960


What is a recursive stored procedure in sql server?

1085


How to use old values to define new values in update statements in ms sql server?

1163


What is save transaction and save point?

1119


If you lose rights to your sql server instance what are the options to connect to sql server instance? : sql server security

971


Can you explain the disadvantages/limitation of the cursor?

905


What is a raid and what are different types of raid configurations?

1200


what is a sub-report?

132


What is the data tier application?

169


What is database mirroring?

1037


What is single-user mode and what are the steps you should follow to start sql server in single-user mode?

932


Mention a few common trace flags used with sql server?

879