How to select the duplicate rows from a table?

Answer Posted / nans

Select FIELD1 From <TABLENAME> As Temp Group By FIELD1 Having
Count(*) >1;

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are catalog tables in db2?

685


Explain correlated sub-queries.

663


What kind of database is db2?

662


have 3 tables table1, table2 and table3 which contains employee information. table1 is master table, table2 contains emp details like emp no and so on, table 3 contains emp salary. so if any emp leave company between 25th - 30th of every month it has to get updated in tables. but it is not getting updated. What is the reason.

1360


Is it possible to create an Instance in DB2 using DB2 Control Center ?

713






How do I add a column to a table in db2?

713


Explain about dbrm.

684


I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?

2019


Highlight all the advantages that are attached to a package.

728


What is a page in db2?

692


How will you return the number of records in table?

595


How can you classify the locks in db2?

721


What is the use of runstats in db2?

668


What is data manager?

695


Explain the function of data manager.

714