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
Which sql most popular?
What is pessimistic concurrency control? : Transact sql
What operating systems are supported by oracle sql developer?
How do you delete data from a table?
What is sql prepared statement?
What is left join in postgresql?
Can we create a trigger on view?
What do you mean by field in sql?
What are triggers and its types?
How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?
What is nosql db?
Explian rowid, rownum? What are the psoducolumns we have?
Explain the commit statement.
How are sql commands classified?
What is the purpose of using pl/sql?