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 node in db2?

816


What is query_cache_limit?

760


What is runstats db2?

777


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

916


How to get the ddl of a table in db2?

870


What are host variables in db2?

819


How do I add a column to a table in db2?

845


How can you quickly find out the # of rows updated after an update statement?

807


Can one database have multiple instances?

804


What are the different types of base tables?

771


What is access path in db2?

745


What is concurrency?

917


What is buffer pool in the db2 database?

849


Is ibm db2 open source?

827


What is the maximum number of columns in a db2 table?

998