In a single table,How to retrieve a employee-id of an
employee who works in more than one department?
Answer Posted / anonymous
select emp_id from employee where dept in (select distinct
dept from employee) group by emp_id having count(*) >1;
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is the use of db2?
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?
Is db2 relational database?
How and when does the db2 enforces the unique key?
What is a db2 cursor?
What happens in bind step in a db2 program?
What is difference between alias and synonym in db2?
What is rct?
What is isolation level in db2?
What is performance tuning db2?
When the like statement is used?
Why do we use cursor?
What is the physical storage length of the data types: date, time, timestamp in the db2 database?
Is db2 a mainframe database?
Mention the way of highlighting as well as putting a cursor to use in a cobol program.