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 commit? : Sql dba
How do you use a while loop in pl sql?
How many sectors are in a partition?
How to get help at the sql prompt?
How many types of normalization are there?
What does trigger mean in slang?
how to run 'mysql' commands from a batch file? : Sql dba
How is indexing done in search engines?
Explain what is rdbms?
what is a tablespace? : Sql dba
Write the alter statement to enable all the triggers on the t.students table.
Explain architecture of sql server notification services?
What are sql indexes?
How are sql commands classified?
What is dba in sql? : SQL DBA