how do you count the duplicate records in a table

Answer Posted / dev

Hi,
There are many ways to do it.

One of that is ,

select count(0) from tab1 a
where a.rowid > any (select b.rowid from tab1 b where
a.col1 =b.col1);

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between cluster and non cluster index? : Sql dba

559


Is oracle and sql same?

577


What is triggering circuit?

597


What is partition by in sql?

574


What are functions in sql?

513






Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

499


Explain constraints in sql?

575


how do you know the version of your mysql server? : Sql dba

508


What are analytical functions in sql?

546


Why do we use sql constraints?

664


How will you distinguish a global variable with a local variable in pl/sql?

626


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

759


What is an implicit commit?

561


What is the difference between syntax error and runtime error?

617


what are local and global variables and their differences? : Sql dba

542