CJBIRKIN
Drink!
- Local time
- Today, 17:51
- Joined
- May 10, 2002
- Messages
- 255
Hello
I have a questionnaire that needs to be converted to a DB. My problem is i can see various solutions but if i get the normalization wrong at the start i'm going to be up the proverbial creek later.
The questionnaire is comprised of 7 sub questionnaires, not all the recipients will be expected to fill out all of them. i.e one person may only find they need to fill out part 1: Security and Confidentiality for example.
Each question is given 4 tick boxes YES, NO, N/K(not sure) and N/A (not applicable). There is also a comments field. The recipient will also need to attach supporting documention for each question they answer yes to.
I reckon that that the stucture should be:
TBL_QUESTIONNAIRE
SUB_QUESTIONNAIRE_Number; (PK)
Sub_QUESTIONNAIRE_Description
TBL_QUESTION
Question_ID; (PK)
SUB_QUESTIONNAIRE_Number; (FK from TBL_QUESTIONNAIRE)
TBl_ANSWER
Answer_ID; (PK)
Staff_Member_ID; (FK from TBL_STAFF)
Question_ID; (FK from TBL_QUESTION)
YES:
NO:
N/K:
N/A:
Comments
Document (Hyperlink)
TBL_STAFF:
Staff_ID; (PK)
First_Name
Last_Name
Phone_Number
Location_ID; (FK from TBL_LOCATION)
TBL_LOCATION:
Location_ID;(PK)
Room
Building; (FK from TBL_BUILDING)
TBL_BUILDING
Building;(PK)
Description
Site; (FK from TBL_SITE)
TBL_SITE
SITE_ID; (PK)
Description
I cannot change the structure of the questionnaire
The idea is that when we select a particular question we should be able to find all the staff who answered the question and the supporting documentation.
Can any one confirm or deny my analysis??
Cheers
Chris
PS how about a board for this sort of question (or should this be in tables?)
I have a questionnaire that needs to be converted to a DB. My problem is i can see various solutions but if i get the normalization wrong at the start i'm going to be up the proverbial creek later.
The questionnaire is comprised of 7 sub questionnaires, not all the recipients will be expected to fill out all of them. i.e one person may only find they need to fill out part 1: Security and Confidentiality for example.
Each question is given 4 tick boxes YES, NO, N/K(not sure) and N/A (not applicable). There is also a comments field. The recipient will also need to attach supporting documention for each question they answer yes to.
I reckon that that the stucture should be:
TBL_QUESTIONNAIRE
SUB_QUESTIONNAIRE_Number; (PK)
Sub_QUESTIONNAIRE_Description
TBL_QUESTION
Question_ID; (PK)
SUB_QUESTIONNAIRE_Number; (FK from TBL_QUESTIONNAIRE)
TBl_ANSWER
Answer_ID; (PK)
Staff_Member_ID; (FK from TBL_STAFF)
Question_ID; (FK from TBL_QUESTION)
YES:
NO:
N/K:
N/A:
Comments
Document (Hyperlink)
TBL_STAFF:
Staff_ID; (PK)
First_Name
Last_Name
Phone_Number
Location_ID; (FK from TBL_LOCATION)
TBL_LOCATION:
Location_ID;(PK)
Room
Building; (FK from TBL_BUILDING)
TBL_BUILDING
Building;(PK)
Description
Site; (FK from TBL_SITE)
TBL_SITE
SITE_ID; (PK)
Description
I cannot change the structure of the questionnaire
The idea is that when we select a particular question we should be able to find all the staff who answered the question and the supporting documentation.
Can any one confirm or deny my analysis??
Cheers
Chris
PS how about a board for this sort of question (or should this be in tables?)