how do you count the duplicate records in a table

Answer Posted / ajmal khan

There are many way to count the duplicate row in a table
select count(column_name)-count(distinct(column_name)) from
table_name;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many postgresql users are there, worldwide?

779


Why plvtab is considered as the easiest way to access the pl/sql table?

835


explain advantages of innodb over myisam. : Sql dba

831


What are primary key and foreign key and how they work?

745


how can we destroy the cookie? : Sql dba

742






Explain the difference between drop and truncate commands in sql?

740


What is the use of pl/sql table?

758


Which are the different character-manipulation functions in sql?

719


How do you delete a table?

765


What is the difference between cluster and non-cluster index?

807


What is sql and its types?

820


How do you write a complex sql query?

779


Explain the working of primary key?

839


what are sequences

1316


How delete all data from all tables in sql?

690