if suppose i am having an ACCOUNT table with 3 coloumns ACC.
NO,ACC. NAME,ACC. AMOUNT . If a unique index is also
defined on ACC.NO and ACC.NAME then write a query to
retrieve account holders records who have more than 1 ACC.

Answer Posted / s

For this scenario duplicate records will not exist in the
table as the index has been defined on the 2 primary keys.

Hence the answer is we can't pull the account holders
having more than 1 account

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dpf in db2?

666


What is the use of runstats in db2?

577


what is diffrence b/w file-aid tool and file-aid utility???

4181


What is the maximum size of a char data type in db2?

588


What are the bind parameters ibm db2?

624






What is data manager?

610


What is the purpose of rollback and commit?

595


What type of database is db2?

525


In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?

579


What is the maximum No of rows per page?

628


How can record locking be achieved in those DB2 versions which do not support it?

627


What is the difference between nvl and coalesce?

602


How to test SQL -911 error while developing COB-DB2 program

6716


What's The Error Code For Unique Index Voilation?

652


What is sqlca?

624