How to count the number of duplicate items in a table?

Answer Posted / mr.abdul rahim

select count(column), column from table group by column
having count(column) > 1

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?

831


How many types of triggers are there?

769


Does transparent data encryption provide encryption when transmitting data across the network?

804


Does order by actually change the order of the data in the tables or does it just change the output?

915


What is checkpoint in sql server?

811






What objects does the fn_my_permissions function reports on? : sql server security

747


Explain various On-Delete options in a DB table. Which is the default option?

1134


What is nested transaction?

758


How to achieve Paging of records in SQL SERVER?

742


How to use user defined functions in expressions?

707


What are different types of roles provided by ssrs?

128


What are the elements of dbms?

711


What is extended stored procedures?

716


Explain partitioned view?

807


What are null values in ms sql server?

750