I have two tables.
Employee
EmployeeID, EmployeeName, DocumentType
and
DocumentType
DocumentTypeID, DocumentType
There are Multiple Employees and Multiple DocumentTypes.
For each employee, I am trying to display which DocumentTypes do not exist.
I cant seem to do this for each EmployeeID/Employee Name.
I can only get a list of DocumentTypes that dont exist for ALL employees.
Can I do this without a cursor going through each EmployeeID?
EDIT Better version
Original –
This works but doesn’t feel like the most elegant solution