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 / lol

select ACC.NO||ACC.Name from ACCOUNT having count(acc.no||acc.name) >1

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about rct in db2?

751


What is bind package and plan in db2?

696


What is coalesce in db2?

765


What is a db2 package?

681


What are db2 tables?

742






what is a corelated subquerry?

738


What is ibm db2 connect?

652


Which are the db2 tools to protect integrity of the database?

776


What is a db2 collection?

688


How can you classify the locks in db2?

721


What is the difference between using bind () and rebind () methods of naming class?

908


What is data manager?

695


How is the value function used?

713


What is null in db2?

653


What is dbrm? When it will be created?

678