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
Mention the downsides of page level lock.
What is db2 command?
What is a dbrm in db2?
What is the role of union all and union
what is the sqlcode -501
In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?
What does runstats do in db2?
What is the maximum No of rows per page?
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?
Can there be more than one cursor open for any program?
What is a db2 cursor?
Is db2 a mainframe database?
Mention the definition of cobol in varchar field.
Explain db2.
What is buffer pool in the db2 database?