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 is a natural join?
what is the difference between delete and truncate statement in sql? : Sql dba
What is the sql*loader? : aql loader
Can unique keys be null?
List out the acid properties and explain?
what is sql server agent? : Sql dba
How do you write a complex sql query?
Explain the purpose of %type and %rowtype data types with the example?
Can 2 queries be executed simultaneously in a distributed database system?
What is column?
What is pl sql block structure?
Is there a 64 bit version of ssms?
What is a left join?
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql
How long it takes to learn pl sql?