how do you count the duplicate records in a table

Answer Posted / satheesh

SELECT COUNT(*)
FROM TABLE A
WHERE ROWID NOT IN (SELECT MAX(ROWID)
FROM TABLE B
WHERE A.COL1 = B.COL1);--UNIQUE COLUMN

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a temp table?

746


How many times can we commit in a loop?

740


how can we take a backup of a mysql table and how can we restore it. ? : Sql dba

717


How many types of normalization are there?

666


What is the least restrictive isolation level? : Transact sql

764






What are local and global Indexes and where they are useful.

1133


How do you create an update query?

702


Explain the purpose of %type and %rowtype data types?

663


How do I edit a trigger in sql developer?

705


What is foreign key and example?

703


Can we insert data in view?

691


How many tables can you join in sql?

707


What are synonyms in sql?

728


what is the command line end user interface - mysql? : Sql dba

695


How to make a copy values from one column to another in sql?

767