russmann2000
Registered User.
- Local time
- Yesterday, 22:22
- Joined
- Mar 25, 2018
- Messages
- 13
I have a table with EMPLOYEE_IDs and a column (EMPLOYEE_CODE) with more than one value for the same EMPLOYEE_ID. I'm attempting to pull all of the ID's with more than one EMPLOYEE_CODE, can get it to list the ID's, but if I try to add the CODE I get nothing. This is what I have if I just want the ID.
SELECT EMPLOYEE_ID
FROM tblEMPLOYEE
WHERE EMPLOYEE_CODE In ("CODE 1","CODE 2")
GROUP BY EMPLOYEE_ID
HAVING Count(EMPLOYEE_ID) >1
How can I get it to list the EMPLOYEE_CODEs as well?
SELECT EMPLOYEE_ID
FROM tblEMPLOYEE
WHERE EMPLOYEE_CODE In ("CODE 1","CODE 2")
GROUP BY EMPLOYEE_ID
HAVING Count(EMPLOYEE_ID) >1
How can I get it to list the EMPLOYEE_CODEs as well?
Last edited: