First, I wanted to say hi, since this is my first post.
Here is my issue. I am using just one table for this query, so it should be pretty straight forward, but I can't seem to return the results that I want. The query is based on Employee ID's and what departments they have associated with them. However, whoever designed the database made it a text field that could hold multiple values, and each value is comma delimited. Say I want to find all employee id's that are either associated to each department, or if an employee has access to multiple departments.
So employee ID's 1, 2, 3
Departments: a,b,c
EmpID:1
Departments: a
EmpID: 2
Departments: a,b
EmpID: 3
Departments: a,b,c,d,e,f
Here is my most recent query. I know this isn't the answer, but I am at a loss here.
SELECT
EmpID, Departments
FROM
User
WHERE Departments IN ('a','b','c')
Thank you
Bill