Hi,
I need a query to find an employeeid who work in different departments and vomit single eid
deptid eid
101 1
212 1
314 1
100 2
412 3
506 3
618 3
expected output as follows
deptid eid
101 1
212 1
314 1
412 3
506 3
618 3
Thanks in advance.

Jignesh KumarPosted Jul 28, 2018, 2:12 AM
Packiaraj SanthiyaguPosted Jul 28, 2018, 1:24 AM
Jefferson S. MottaPosted Jul 27, 2018, 10:14 PM
Jenith ThakkarPosted Jul 19, 2018, 2:36 AM
WITH CTE AS (
Sai ReddyPosted Jul 19, 2018, 1:52 AM
rajendra singhPosted Jul 19, 2018, 1:50 AM
Jenith ThakkarPosted Jul 19, 2018, 1:48 AM