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
What are types of indexes in sql?
What is sqlite used for?
What trigger means?
Differentiate between sga and pga.
How do I clear the screen in sql plus?
What are tables and fields?
How do you create a unique index?
What are the advantages of stored procedure?
define join and explain different type of joins? : Sql dba
Can we group by two columns in sql?
What are the dml statements?
What is the use of procedures?
How do I copy a table in sql?
what are the different tables present in mysql? : Sql dba
List the ways to get the count of records in a table?