how do you count the duplicate records in a table
Answer Posted / sravan
Hi here is another way to solve this
SELECT NAME, COUNT(NAME) FROM TABLE_NAME
WHERE NAME IN (SELECT NAME FROM TABLE_NAME
GROUP BY NAME
HAVING COUNT(NAME)>1)
GROUP BY NAME;
thanks
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to select random rows from a table?
What is offset and limit in sql?
how to select unique records from a table? : Sql dba
What do we need to check in database testing?
Why cannot I use bind variables in ddl/scl statements in dynamic sql?
What are the parts of a basic sql query?
what is innodb? : Sql dba
Can we create clustered index without primary key?
Explain what is sql*plus?
What are the different parts of a package?
How do you copy a table in sql?
how can we optimize or increase the speed of a mysql select query? : Sql dba
Is it possible for a table to have more than one foreign key?
What is a behavioral trigger?
Can you rollback after commit?