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 sqlite format?

628


Which nosql database is best?

511


What has stored procedures in sql and how we can use it?

564


what are sequences

1090


What is partition by in sql?

569






What does rownum mean in sql?

556


What are all different types of collation sensitivity?

523


Why do we use joins in sql?

500


Is pl sql better than sql?

549


Which is faster view or stored procedure?

502


what are different types of collation sensitivity? : Sql dba

553


What are the two types of periodical indexes?

505


What is exception? What are the types of exceptions?

556


Why is a primary key important?

545


Describe sql comments?

559