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
Mention the definition of cobol in varchar field.
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?
How to find schema of a table in db2?
Explain about dbrm.
Why do we need reorg in db2?
What are the benefits of using the db2 database?
Define buffer pool.
How to find the maximum value in a column in the db2 database?
What do you mean by commit and rollback?
What are the different types of base tables?
What is the physical storage length of date data type?
Can we delete records from view?
What is access path in db2?
How can record locking be achieved in those DB2 versions which do not support it?
What does reorg do in db2?