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 is rebind in db2?
What does db2 stand for?
What is the connection string to connect to the DB2 Database ?
what is utility for parm lib
Is db2 a mainframe?
Explain about dbrm.
What is table space in db2?
How to test SQL -911 error while developing COB-DB2 program
Is the primary key a clustered index?
What types of tables are there in the db2 database?
What is the difference between nvl and coalesce?
Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?
What is clone table?
Mention the various locks that are available in db2.
What does db2 mean?