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

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


What is plan in cobol db2?

686


Mention the location where the output received from explain statement is stored.

714


How do we specify index to include or not during bind process.

1765


What is a db2 tablespace?

689






Explain the contention situations caused by locks?

681


What os does db2 run on?

651


List out the data types available.

798


What is drop table?

661


What is meant by explain?

742


List out the buffer pools in db2

723


Define sqlca.

729


What is dbrm? What it contains? When it will be created?

677


How do I connect my db2 database to ibm?

672


Are views updateable?

732