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
What are the different types of base tables?
Explain dclgen.
Give a brief description of db2 isolation levels?
what is the role of the cursor in db2?
What is db2 bind process?
Which is faster delete or truncate?
What is dbrm? When it will be created?
What is a bind in db2?
Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?
What is drop table?
How can you classify the locks in db2?
Is the primary key a clustered index?
How do I add a column to an existing table in db2?
What's The Percentage Free Space ?
What is db2 catalog database?