I have two tables: Events and People. They are used for registration. People contains name and userID. Event contains userID and eventID. I need to compile lists of people who are NOT registered for any given event.
Example data:
People contains the following
Name UserID
John jsmith
Mary mjones
Fred fflint
Wilma wflint
Events contains the following:
EventID UserID
101 fflint
101 jsmith
102 wflint
102 mjones
102 fflint
103 mjones
103 jsmith
I want to contact all who have not registered for event 101, so I need to get People.name where Events.EventID!=101. So the answer that I want is wflint and mjones.
Using mysql version 3.23 -- A subquery would work, but it's not supported.
Any help would be appreciated.
Thanks
B