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


Please Help Members By Posting Answers For Below Questions

Explain the contention situations caused by locks?

586


What is null in db2?

570


What is the role of the data page in the db2 database?

581


Explain about mirror activator disk mirroring?

554


What is data manager?

603






In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?

634


How do I delete a column in db2?

674


How do I add a column to a table in db2?

616


How to rename a table in DB2 ?

635


What is image copy in db2?

564


Define db2.

662


What is a db2 cursor?

618


What is difference between rollback and commit?

616


How do you stop a db2 database in linux?

564


What is a db2 collection?

601