How to count the number of duplicate items in a table?
Answer Posted / lalit goyal
select count(*) from (select boss_ID,COUNT(boss_ID) as s from dbo.Employee group by boss_ID ) a where s>1
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a transact-sql statement batch in ms sql server?
What is the recursive stored procedure in sql server?
When is the use of update_statistics command?
What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?
What are window functions in sql server?
What are the source of constraints?
What is data set in report?
What command would you use to add a column to a table in sql server?
What are the mathematical functions supported by sql server 2005?
How do I create a stored procedure in dbml?
Explain few examples of stored procedure over triggers?
How to list all columns in a table using odbc_columns()?
how many triggers you can have on a table? : Sql server database administration
How to enable tcp/ip protocol on a sql server?
What is sql profiler. What are the default templates with it? : sql server database administration