how do you count the duplicate records in a table

Answer Posted / suresh a

select sum(count(col1) -1) from emp
group by col1 having count(col1) > 1

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different schemas objects that can be created using pl/sql?

534


How do I know if I have sql express or standard?

608


What are string functions in sql?

678


What does t sql mean?

537


What is integrity in sql?

562






Can we delete column in sql?

564


what are the different functions in sorting an array? : Sql dba

584


Are stored procedures faster than dynamic sql?

535


Can sql developer connect to db2?

587


What type of database is cloud sql?

580


Write a program that shows the usage of while loop to calculate the average of user entered numbers and entry of more numbers are stopped by entering number 0?

1688


Which one is better sql or oracle?

505


What is sorting in sql?

503


What is #table in sql?

524


How do temporal tables work?

521