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

Answer Posted / krishnakumar

select employee-id
from table-name
grtoup by employee-id
having count(*) > 1

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?

2690


What parameters are used to control the free space in DB2?

645


How to access db2 tables in mainframe?

615


What is a plan and package in db2?

625


Is it possible to create an Instance in DB2 using DB2 Control Center ?

631






What is dclgen in db2?

681


What r the comman abends in db2, jcl and cobol???????

1820


How do I connect my db2 database to ibm?

604


Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference

755


Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?

6863


How can we retrieve the total number of records in RPG & CLLE?

203


What is ibm db2 connect?

576


Is it possible using max on a char column?

612


What are union and union all?

541


What are concurrency issues?

632