In a single table,How to retrieve a employee-id of an
employee who works in more than one department?

Answer Posted / venkat

select emp-id from emp group by emp-id having count(*)>1;

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I start db2 in windows?

563


Can one database have multiple instances?

583


What is the information associated with sysibm.syslinks table?

657


what is diffrence b/w file-aid tool and file-aid utility???

4178


What is reorg and runstats in db2?

694






What is runstats utility in db2?

569


How to take backup of table in db2?

601


My sql statement select avg(salary) from emp yields inaccurate results. Why?

640


Explain the contents that are a part of dclgen.

659


How do we specify index to include or not during bind process.

1674


What is the use of reorg in db2?

602


Is ibm db2 open source?

586


What's The Percentage Free Space ?

768


What is load replace in db2?

560


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

587