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 / suleman
Try this one
select ACC.NO,ACC.NAME
FROM ACCOUNT
group by ACC.NO
HAVING COUNT(*) > 1
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Is db2 relational database?
What is commit in db2?
What is the difference between dbm cfg and db cfg file in db2 ?
What is a db2 collection?
What is clone table?
Explain dclgen.
What is precompiler in db2?
What is null indicator in cobol db2?
What are bind parameters in db2?
How to find schema of a table in db2?
What is dbrm in db2 database?
Are views updateable?
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?
Can one database have multiple instances?
What is a plan and package in db2?