How to select the duplicate rows from a table?

Answer Posted / channabasappa

select field name from tablename where group by field name
having count(field name)>1;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to run db2 command in windows?

643


What type of database is db2?

523


What do you mean by between and in? Is between inclusive of specified range values?

664


What is runstats and reorg in db2?

791


In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?

639






What is the syntax for seeing the columns and data types of a table in the db2 database?

576


How can you quickly find out the # of rows updated after an update statement?

630


What is a db2 collection?

603


What is the difference between spufi and qmf?

635


When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?

3115


What is cursor stability in db2?

805


What is the difference between dbm cfg and db cfg file in db2 ?

1000


What do you mean by storage group (stogroup)?

580


Explain in detail about buffer manager and its functionalities?

558


What is lock escalation in db2?

572