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 a sql driver?

525


How do I delete a trigger?

541


Is mariadb a nosql database?

532


Why join is faster than subquery?

597


Is coalesce faster than isnull?

504






What is bind variable in pl sql?

526


what is sp_pkeys? : Transact sql

699


Does a user_objects view have an entry for a trigger?

570


What is using in sql?

562


What is pl sql script?

560


How to process query result in pl/sql?

558


Which one is better sql or oracle?

496


What do we need to check in database testing?

554


what is innodb? : Sql dba

575


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

622