In a single table,How to retrieve a employee-id of an
employee who works in more than one department?
Answer Posted / varun
Select emp_id
from
employee
group by emp_id,dept
having count(*)>1;
| Is This Answer Correct ? | 26 Yes | 2 No |
Post New Answer View All Answers
What is the physical storage length of the data types: date, time, timestamp in the db2 database?
What are the various data types available in db2?
How do I start db2 in windows?
Explain about rct in db2?
Mention the length of physical storage of the given data types of db2 – date, timestamp, time
What is host variable?
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?
Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?
What is the default page size of buffer pools?
What is db2 stogroup?
Define buffer pool.
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?
What is difference between rollback and commit?
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?
What is check constraint in db2?