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 / ratheesh nellikkal

Hi All,

Here u already have a unique index defined on ACC.NO and ACC.NAME feilds.
Unique index will not allow more than one value for this particular field (Correct me if I am wrong).
Then hw can we get more that one a/c no for a person in this scenario ?

So the answer will be, u can not store more than one a/c number for a person since u have a unique indexes on these table.

Regards,
Ratheesh Nellikal

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention the definition of cobol in varchar field.

776


in my project..TEST is db2 8.1 version In PROD it is 7.1 if i do REORG in TEST.. can I use the same REORG jcl with out modification in PROD region (this is DB2 8.1 )? if not, what modification i need to do in my REORG control card?

1723


How to find schema of a table in db2?

658


Explain about dbrm.

684


Why do we need reorg in db2?

642






What are the benefits of using the db2 database?

760


Define buffer pool.

706


How to find the maximum value in a column in the db2 database?

687


What do you mean by commit and rollback?

680


What are the different types of base tables?

658


What is the physical storage length of date data type?

857


Can we delete records from view?

652


What is access path in db2?

638


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

720


What does reorg do in db2?

655