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

Answer Posted / sri

select A.empid from EMP A, EMP B where
A.empid = B.empid and
A.dept not = B.dept

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between cs and rr isolation levels? Where do you specify them?

587


What is the physical storage length of the data types: date, time, timestamp in the db2 database?

654


What are the full forms of spufi and dclgen and why are they used?

658


Explain the contents that are a part of dclgen.

661


What is the difference between nvl and coalesce?

604






What is ibm db2 database?

541


in my project..TEST is db2 8.1 version In PROD it is 7.1 if i do REORG in TEST.. can I use the same REORG jcl with out modification in PROD region (this is DB2 8.1 )? if not, what modification i need to do in my REORG control card?

1628


What is a dbrm in db2?

580


What is a db2 cursor?

626


What is explain plan in db2?

592


What is blu acceleration in db2?

608


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

1820


What is iseries database?

597


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

716


I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?

1938