J
JNariss
Database set up help
I am starting to wonder if my database is set up incorrectly. It
started wit
h two tables: Employee and Termination. These tables have a
relationship wit
h my ESCID (Employee Status Change ID) which is in my Employee table
and the
y work great.
However, my bosses wanted me to add Security Options to the picture. So
I ad
ded some more tables and now I feel that what I have done is actually
more w
ork than what I could have done and none of my queries are coming out
right.
So here I am.......asking for help.
The security options goes like this:
1. User needs to enter contact information (these fields come from the
Emplo
yee table)
2. After entering contact information the user makes a selection from
the Ma
in Menu of 38 choices. (I added a MMO table to the database [Main Menu
Optio
ns] and entered the 38 choices as individual fields with a yes/no data
type)
The user gets to select one or more options off this main menu
a. Depending on which options are chosen from the Main Menu allows
users to
choose other options.
3. If a user picks any of the 1st three options off the Main Menu the
next t
hing they get to choose from is a choice of Applications. (There are 20
appl
ications they can choose from). So for each application I set up an
individu
al table. I did this because not only can they choose an
"Application" but w
hen they do choose the application they have to make the security
selections
off that application and the security selections look something like
this (
for say the user picked the ACP application code out of the 20 choices
given
):
Application Code | ECM | U.S. | Canada
ACP100 | y/n | y/n | y/n
ACP200 | y/n | y/n | y/n
ACP300 | y/n | y/n | y/n
ACP400 | y/n | y/n | y/n
("|" = table columns)
Like I stated earlier there are 20 application codes and each one has
anywhe
re between 12 and 50+ codes within that application. Users also get a
choice
of either ECM, U.S., or Canada (represented as a checkbox).
So, not only did I give each application its own table but I also have
a ton
(and I mean a ton) of fields within the tables. For example, in the
ACP tab
le above you notice only 4 ACP codes (100,200,300,400) however in my
table t
hat is 12 fields: ACP100ECM, ACP100US, ACP100CANADA, ACP200ECM,
ACP200US, AC
P200CANADA and so on........
4. If a user picks # 4 off the Main Menu (LogPro Department) instead of
one
of the 1st three choices they get to choose one or more of the LogPro
Depart
ments. So I set up another table "LogPro" and put every department
(there ar
e 19) as a yes/no data type for checkboxes.
So, now as you can hopefully see I have a database with over 20 tables.
Am I
doing this correct or did I royally screw it up??
Any help, advice, or guidance would be greatly appreciated.
-Justine
I am starting to wonder if my database is set up incorrectly. It
started wit
h two tables: Employee and Termination. These tables have a
relationship wit
h my ESCID (Employee Status Change ID) which is in my Employee table
and the
y work great.
However, my bosses wanted me to add Security Options to the picture. So
I ad
ded some more tables and now I feel that what I have done is actually
more w
ork than what I could have done and none of my queries are coming out
right.
So here I am.......asking for help.
The security options goes like this:
1. User needs to enter contact information (these fields come from the
Emplo
yee table)
2. After entering contact information the user makes a selection from
the Ma
in Menu of 38 choices. (I added a MMO table to the database [Main Menu
Optio
ns] and entered the 38 choices as individual fields with a yes/no data
type)
The user gets to select one or more options off this main menu
a. Depending on which options are chosen from the Main Menu allows
users to
choose other options.
3. If a user picks any of the 1st three options off the Main Menu the
next t
hing they get to choose from is a choice of Applications. (There are 20
appl
ications they can choose from). So for each application I set up an
individu
al table. I did this because not only can they choose an
"Application" but w
hen they do choose the application they have to make the security
selections
off that application and the security selections look something like
this (
for say the user picked the ACP application code out of the 20 choices
given
):
Application Code | ECM | U.S. | Canada
ACP100 | y/n | y/n | y/n
ACP200 | y/n | y/n | y/n
ACP300 | y/n | y/n | y/n
ACP400 | y/n | y/n | y/n
("|" = table columns)
Like I stated earlier there are 20 application codes and each one has
anywhe
re between 12 and 50+ codes within that application. Users also get a
choice
of either ECM, U.S., or Canada (represented as a checkbox).
So, not only did I give each application its own table but I also have
a ton
(and I mean a ton) of fields within the tables. For example, in the
ACP tab
le above you notice only 4 ACP codes (100,200,300,400) however in my
table t
hat is 12 fields: ACP100ECM, ACP100US, ACP100CANADA, ACP200ECM,
ACP200US, AC
P200CANADA and so on........
4. If a user picks # 4 off the Main Menu (LogPro Department) instead of
one
of the 1st three choices they get to choose one or more of the LogPro
Depart
ments. So I set up another table "LogPro" and put every department
(there ar
e 19) as a yes/no data type for checkboxes.
So, now as you can hopefully see I have a database with over 20 tables.
Am I
doing this correct or did I royally screw it up??
Any help, advice, or guidance would be greatly appreciated.
-Justine