I have a members table with 1000 records:
memberID
firstname
lastname
a tasks_types table with 50 records:
taskID
taskdescription
and a tasks table
memberID
taskID
when a member completes a task, a record is added to the tasks table with their memberID and the taskID that they completed.
I'm looking for the most efficient way to find which members did not complete a given task or set of tasks.....
Putting all of the memberID's into an array, and then querying each one against the tasks table for a given taskID would work, but that's 1000 query's each time....
Selecting all of the memberID's from the tasks table for a given taskID would give me everyone who did complete the task... maybe then selecting all of the members from the members table that are not in that list that completed the task? is there an easy way to do that?
any suggestions on the proper query for this would be great....