Q3. How will you fetch duplicate values from a DB2 table?

Answer Posted / ganesh

select column1, column 2, count('X') from Table_name
group by column1, column 2
having integer(count('X')) > 1

Is This Answer Correct ?    16 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is deadlock resolved?

648


What are the different types of base tables?

583


Define data page.

628


Explain packages.

660


I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.

2757






Why do chiropractors use drop table?

658


What is the default page size of buffer pools?

644


What is the physical storage length of date data type?

724


What is clone table?

590


Is db2 free?

684


How do you concatenate the firstname and lastname from emp table to give a complete name?

601


What is db2?

739


For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.

658


File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?

2375


What is db2 bind process?

753