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 sqlca’s maximum length?
What do you mean by cursor?
Discuss about db2 bind?
How do I add a column to a table in db2?
What is difference between alias and synonym in db2?
Explain db2.
How can the duplicate values be eliminated from db2 select?
What is the difference between using bind () and rebind () methods of naming class?
What is db2? Explain.
What is dbrm? What it contains?
DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?
Which are the db2 tools to protect integrity of the database?
Why do we bind in db2?
What is ibm db2 database?
Is db2 a mainframe database?