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

Answer Posted / vish

Another classic example of people replying to the queries
in hurry..the answer #1, #2, #3, #4 & #7 are WRONG ANSWERS.
Answer #6 is correct. Answer #5 also seems to be correct to
me (unfortunatley I can't run & verify it at the moment,
someone please verify it & let everyone know).

Ram.g, FYI..EXISTS clause just denotes whether query after
EXISTS clause returned any row or not, it NEVER give a
count of the number of rows returned. Here need to find if
there are more than one rows (i.e count is needed) so
EXISTS can't be used here.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between cursor and select statement?

613


What is cascading rollback?

623


How to check table size in db2 sap?

577


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

4179


What is universal database?

617






How can the firstname and the lastname from the emp table be concatenated to generate complete names?

746


How to find the maximum value in a column in the db2 database?

611


Explain about rct in db2?

640


What is the maximum number of columns in a db2 table?

723


Are views updateable?

642


What is the picture clause of null indicator variable?

690


On which levels locks can be applied?

657


What is performance tuning db2?

618


Is db2 a mainframe database?

567


What is explain in db2?

582