Lets say i have three tables - a member table, a non
member table( storing all contact details of a member
or non member) and a profile table( storing all info
about events performed in, by a member or
nonmember,and their performance acts at that event
etc)
The member table has a one to many relationship with
the profile table.Same for the non member table.
The relationship is optional on both the member and
profile side of the relationship ie a member may have
one or many profiles. and a particular profile may
belong to only one member. I say 'may' b/c a profile
does not have to belong to a member,it could belong to
a non member. And also a member/nonmember does not
have to have a profile, as they may not have performed
in any events.
Now i read that a junction table is not only used for
many to many relationship but also when the many side
of a relationship is optional, this is b/c there is a
rule that says that a foriegn key(e.g the nonmember
and member foriegn keys in the profile table)must
never have a null value)
Based on this info', i made a junction table between
member and profile and one between nonmember and
profile called member/profile and nonmember/profile
respectively each having two primary keys
Okay you get the picture, so i'll continue with just
two tables(member and profile) to cut this story short
My questions are:
1) is it true, that a junction table must be used in
this type of situation or am i going down the wrong
path?
2) if it is true. then it means that i am left with
this ridiculous junction table with just two fields -
the 'member number' and the 'profile number'. My
confusion is - How does this table initially get
filled when a new member or profile record is
inputted?. surely i cant have a seperate form which
requests the user to fill in these details ? is'nt
that very user unfriendly?
yeah!!! they might know the membership number for a
particular person but they probably wont know the
profile number as it is an autonumber. And there is
really no field i can add this table to make it a more
memaningful table( ive checked). so what do you do
when you have a jxn table that is typically for
junction purposes alone?.
And correct me if im wrong but i am sure you cant
create a query between the member and profile table if
this junction table is empty
Engy
member table( storing all contact details of a member
or non member) and a profile table( storing all info
about events performed in, by a member or
nonmember,and their performance acts at that event
etc)
The member table has a one to many relationship with
the profile table.Same for the non member table.
The relationship is optional on both the member and
profile side of the relationship ie a member may have
one or many profiles. and a particular profile may
belong to only one member. I say 'may' b/c a profile
does not have to belong to a member,it could belong to
a non member. And also a member/nonmember does not
have to have a profile, as they may not have performed
in any events.
Now i read that a junction table is not only used for
many to many relationship but also when the many side
of a relationship is optional, this is b/c there is a
rule that says that a foriegn key(e.g the nonmember
and member foriegn keys in the profile table)must
never have a null value)
Based on this info', i made a junction table between
member and profile and one between nonmember and
profile called member/profile and nonmember/profile
respectively each having two primary keys
Okay you get the picture, so i'll continue with just
two tables(member and profile) to cut this story short
My questions are:
1) is it true, that a junction table must be used in
this type of situation or am i going down the wrong
path?
2) if it is true. then it means that i am left with
this ridiculous junction table with just two fields -
the 'member number' and the 'profile number'. My
confusion is - How does this table initially get
filled when a new member or profile record is
inputted?. surely i cant have a seperate form which
requests the user to fill in these details ? is'nt
that very user unfriendly?
yeah!!! they might know the membership number for a
particular person but they probably wont know the
profile number as it is an autonumber. And there is
really no field i can add this table to make it a more
memaningful table( ive checked). so what do you do
when you have a jxn table that is typically for
junction purposes alone?.
And correct me if im wrong but i am sure you cant
create a query between the member and profile table if
this junction table is empty
Engy