I have table Tasks(employee_name, task)
------------------
Joe | taskA
Joe | taskB
Ted | taskA
Jim | taskB
Ray | taskA
Ray | taskB
John| taskA
Tim | taskC
I need to find all pairs of employees that have the same set of tasks.
For example using the data above the result set should be:
---------------------
employee1 | employee2
---------------------
Joe | Ray
Ted | John
I'm using MySQL for the database.
join
between the table and itself, as though it were another table? – Informality