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
How can you tell if a database object is invalid?
How can you insert values in multiple rows using one Insert statement?
Can we create clustered index on composite key?
How to select some specific rows from a table in ms sql server?
What is a recursive stored procedure in sql server?
How to use old values to define new values in update statements in ms sql server?
What is save transaction and save point?
If you lose rights to your sql server instance what are the options to connect to sql server instance? : sql server security
Can you explain the disadvantages/limitation of the cursor?
What is a raid and what are different types of raid configurations?
what is a sub-report?
What is the data tier application?
What is database mirroring?
What is single-user mode and what are the steps you should follow to start sql server in single-user mode?
Mention a few common trace flags used with sql server?