How to count the number of duplicate items in a table?
Answer Posted / pavan
Hi,
try this query.In this query sal one val is duplicated
4items
select sal,count(sal) from test group by sal having count
(*)>1
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Do you know nested transaction?
Are all views updatable ?
What do you mean by subquery?
What is the difference between grant and with grant while giving permissions to the user?
What are Spatial data types in SQL Server 2008
What is transact-sql ddl trigger?
How to rename an existing column with sql server management studio?
What are cursors? Explain the different types of cursors Enlist a few disadvantages of cursors.
How to use subqueries with the exists operators in ms sql server?
How to define the name and server for a new dsn?
What is the stuff?
What is open database communication (odbc)?
What is server-level principal?
What are rows and columns?
What are character string data types in ms sql server?