Chance1234
IS-IT--Management
Heres one to mull over,
I have three tables
Children
-----------
CHILD_ID, NAME
Adults
------------
ADULT_ID, NAME
Event
------------
EVENT_ID, DATE, NAME
To start with I ll just take two of these tables
Children
Event
now a child can go to many events and many children can go to many events.
So simply i would create a link table in Access and have a one to many relationship going from children and event to the link table. no problem
Also bringing in the adults i would create a seperate link table to show the many to many, to events.
but what i was thinking was can i get away with one link table ?
I imagine it would look like this
EVENT_ID, CHILD_ID, ADULT_ID
1 2
1 3
1 6
1 2
1 5
1 7
2 1
2 3
2 5
2 1
and i can see from that, by using simple querys i can get most of the infomaiton i want such as how many children attended event 1 , i cane see which children has attended an event more than once etc etc etc
can anyone see any fault in this logic ? or potential problems
I have three tables
Children
-----------
CHILD_ID, NAME
Adults
------------
ADULT_ID, NAME
Event
------------
EVENT_ID, DATE, NAME
To start with I ll just take two of these tables
Children
Event
now a child can go to many events and many children can go to many events.
So simply i would create a link table in Access and have a one to many relationship going from children and event to the link table. no problem
Also bringing in the adults i would create a seperate link table to show the many to many, to events.
but what i was thinking was can i get away with one link table ?
I imagine it would look like this
EVENT_ID, CHILD_ID, ADULT_ID
1 2
1 3
1 6
1 2
1 5
1 7
2 1
2 3
2 5
2 1
and i can see from that, by using simple querys i can get most of the infomaiton i want such as how many children attended event 1 , i cane see which children has attended an event more than once etc etc etc
can anyone see any fault in this logic ? or potential problems