how to get duplicate records from tables?write qurey for this?

Answer Posted / mahesh babu

select column_name,count(*) from table_name group by
column_name having count>1.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the bind parameters ibm db2?

624


Explain what are the various isolation levels possible?

612


Which command is used to connect to a database in DB2 ? Give the Syntax.

602


What are the benefits of using the db2 database?

664


What is the connection string to connect to the DB2 Database ?

616






How can you do the explain of a dynamic sql statement?

637


What is dbrm? What it contains? When it will be created?

595


I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.

1654


What is access path in db2?

566


How is the value function used?

606


by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?

7528


What are host variables in db2?

628


Explain the benefits you can get from mainframe connect?

524


Is ibm db2 open source?

589


What is the function of logging in the db2 database?

647