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 / anandrao
please try this solution also
select count(*),ACC.NO
FROM ACCOUNT
group by ACC.NO
HAVING COUNT(*) > 1
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is a storage group (stogroup)?
What is explain plan in db2?
Mention the length of physical storage of the given data types of db2 – date, timestamp, time
Give the name of some fields form sqlca.
Why db2 is called db2?
How to run db2 command in windows?
Explain in brief how does db2 determine what lock-size to use?
What is a bind card?
What are types of indexes?
How do we specify index to include or not during bind process.
What is db2 connect?
What is check constraint. Explain with example.
What is null indicator in db2?
What is a db2 tablespace?
What is buffer pool and list some of them?