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

How many triggers can be applied on a table?

672


What is Materialized View? In What Scenario we Use Materialized View?

8941


What is interval partition?

724


What is user in sql?

764


What are % type and % rowtype?

778






What is data control language (dcl)?

790


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

719


what is log shipping? : Sql dba

822


How much ram can sql express use?

699


What is the purpose of cursors in pl/sql?

798


What are secondary keys?

736


Which data dictionary views have the information on the triggers that are available in the database?

941


Can we insert data into materialized view?

710


How do I view a view in sql?

697


What is substitution variable in pl sql?

693