In a single table,How to retrieve a employee-id of an employee who works in more than one department?
Select emp_id from employee group by emp_id,dept having count(*)>1;