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

Following a db2 update statement, what is the quickest way to compute the total number of updated rows?

619


What is a system catalog table in db2?

580


Is ibm db2 free?

571


Why cursor is used in db2?

572


What is temporal table in db2?

600






What is data manager?

603


What is the reason behind not using select * in embedded sql programs?

601


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

601


can we view the access paths created by dbrm ? how ? thx

6236


How to check last update on table in db2?

624


Can one database have multiple instances?

579


Mention the downsides of page level lock.

703


Why db2 is called db2?

587


How to take backup of table in db2?

595


What is the physical storage length of the data types date, time, and timestamp?

601