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 / lol
select ACC.NO||ACC.Name from ACCOUNT having count(acc.no||acc.name) >1
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are foreign keys in db2?
How to access db2 tables in mainframe?
How to get the ddl of a table in db2?
Mention the different locking levels that are available in db2.
What is the difference between cursor and select statement?
Give the name of some fields form sqlca.
Define db2 and its databases?
What is table space in db2?
What is the physical storage length of the data types: date, time, timestamp in the db2 database?
What is the physical storage length of timestamp data type?
What is collection in db2 bind?
What is the role of the data page in the db2 database?
What is the difference between using bind () and rebind () methods of naming class?
Explain how can you do the explain of a dynamic sql statement?
What's The Percentage Free Space ?