|
Ok, I am having a little trouble grabbing the exact data I want from my database. This is the scenario:
I have 3 tables, a member table (memberID, firstname, lastname), an eventType table (eventTypeID, eventType), and an attendance table (attendanceID, memberID, eventTypeID, date). Of course these are simplified, but you get the point. The point of these two tables is to track the attendance of people in the database at certain types of events, be it a concert, basketball game, hockey game...
So now in a web application I may want to search for all the people in the database that have NOT attended a certain event type (concerts).
How do I grab that information? All of the joins I have tried give me both the people who have attended the eventype and those who have not. Is there a way to ONLY pull from the database those who have not attended, or must I get all of them and then separate out the data. If the latter is the case, how would I do that?
Any help would be greatly appreciated.
|