In a single table,How to retrieve a employee-id of an
employee who works in more than one department?
Answer Posted / karthik
select dept,empid , count(*)
from table
goup by dept,empid
having count(*) > 1
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
How to find the maximum value in a column in the db2 database?
Define predicate?
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?
Define check constraint.
What is a cursor in programming?
What is the use of commit in db2?
What are the contents of dclgen?
Explain various types of locks in db2?
What is lock escalation in db2?
What is the difference between cursor and select statement?
How do you concatenate the firstname and lastname from emp table to give a complete name?
How do I import data from excel to db2?
What is the difference between dbm cfg and db cfg file in db2 ?
What are foreign keys in db2?
Mention the different locking levels that are available in db2.