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
Why use update_statistics command in sql server?
Define views.
What is for xml in sql server?
Where do you find the default Index fill factor and how to change it?
Can you leave a union at any time?
how many triggers you can have on a table? : Sql server database administration
If a stored procedure is taking a table data type, how it looks?
What are the different types of locks in the database?
What is scd (slowly changing dimension)? : sql server analysis services, ssas
Can you please explain the difference between function and stored procedure?
what is difference between view and Dip.
How to find out the list schema name and table name for the database?
What is a non-clustered index?
What is the difference between cube operator and rollup operator? : SQL Server Architecture
Explain filtered indexes?