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

Answer Posted / ramana99

select City, Country, count('X') from Customers
group by City, Country
HAVING count('X') > 1
;

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If I have a view which is a join of two or more tables, can this view be updateable?

796


How can you validate Sql errors during cursor operation in db2 pgms and where do you code?

1814


What is the difference between db2 and oracle?

761


Mention the length of physical storage of the given data types of db2 – date, timestamp, time

678


Why do chiropractors use drop table?

777






What is the physical storage length of the data types date, time, and timestamp?

725


How do I import a csv file into db2?

650


What are types of indexes?

675


What are union and union all?

626


What does db2 mean?

663


How to find schema of a table in db2?

658


What do you mean by commit and rollback?

680


i tried to copy some records from microsoft excel to as-400 physical file through "Bosanova" emulation. Out of 14000 records only 12000 records copies and subsequently programe started to hang. Then, i closed the program forcefully. I did' under stand the problem. Also when i try to compile the physical file it is showing as "The file in use". How to overcome this problem?

2152


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

3208


What is a bind card?

770