Attach the table to yourself, choose one name employee_ more than another, and where tasks are equal.
select emp1.employee_name, emp2.employee_name, emp1.task from tasks emp1 inner join task emp2 on emp1.employee_name > emp2.employee_name and emp1.task = emp2.task
I hope you have a REAL PK, or this is just an example of exercise. This will not be good in a production environment, as computer_name is not going to uniquely identify an employee in most companies / systems.
source share