I have one temporary table that contains userID
and taskID
. It is called CompletedTasks
.
I have a second table that contains userID
and taskID
. It is called PlannedTasks
.
I need to get a list of all taskID
s that were completed, but not planned.
So, I need to somehow weed out from completed tasks, all rows where both:
PlannedTasks.userID != CompletedTasks.userID
AND
PlannedTasks.taskID != CompletedTasks.taskID