how do you count the duplicate records in a table

Answer Posted / purushotham

select column,count(1) from a
group by column
having count(1)>1;

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

618


which command using query analyzer will give you the version of sql server and operating system? : Sql dba

522


what's the difference between a primary key and a unique key? : Sql dba

504


How to pipe multiline string to isql?

574


What are the different tcl commands in sql?

618






What are the constraints available in sql?

575


how to rename an existing table in mysql? : Sql dba

572


What does the file extension accdb stand for?

545


How do I run a program in pl sql?

497


How many sql statements are used?

564


Name the operator which is used in the query for pattern matching?

503


How do I run a script in sql developer?

489


What does a pl/sql package consist of?

514


what is column? : Sql dba

568


What is difference between joins and union?

529