George Bowyer
Registered User.
- Local time
- Today, 10:20
- Joined
- May 17, 2004
- Messages
- 50
I have a database that is used to tell certain people about certain events (tblPeople; tblEvents)
I have divided the country into areas (tblAreas).
Each person wants to know about events in one or more areas. I store this in tblPeopleAreas.
Each Event should be notified to people interested in one or more areas. I keep these in tblEventAreas.
Easy enough, so far.
What I want to do is look at an event and see which people need to be notified, or look at a person and see which events they need to be notified about.
To do this, I need a rather complex query joining the tblPeople table with tblPeopleAreas table, the tbl PeopleAreas table with the tblEventAreas table, and the tblEventAreas table with the tblEvents table.
I have looked at this for hours (over a period of months) and I just cannot work out even where to begin building the various joins and relationships to make a workable query.
Can soimeone please give me a steer in the right direction?
Thanks
I have divided the country into areas (tblAreas).
Each person wants to know about events in one or more areas. I store this in tblPeopleAreas.
Each Event should be notified to people interested in one or more areas. I keep these in tblEventAreas.
Easy enough, so far.
What I want to do is look at an event and see which people need to be notified, or look at a person and see which events they need to be notified about.
To do this, I need a rather complex query joining the tblPeople table with tblPeopleAreas table, the tbl PeopleAreas table with the tblEventAreas table, and the tblEventAreas table with the tblEvents table.
I have looked at this for hours (over a period of months) and I just cannot work out even where to begin building the various joins and relationships to make a workable query.
Can soimeone please give me a steer in the right direction?
Thanks