Survey DB Modelling - Access

iksotof
3StarLounger
Posts: 313
Joined: 04 May 2010, 15:18

Survey DB Modelling - Access

Post by iksotof »

Hi I am building a survey DB, with three different quesionnaires, say A, B and C. What is the best way to model, have a table with survey names in (tblSurvey) on a one to many with all the questions (tblSurvey) or three different tables for the questions?

Many thanks, Darren.

User avatar
HansV
Administrator
Posts: 78474
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Survey DB Modelling - Access

Post by HansV »

Hi Darren,

Welcome to Eileen's Lounge!

The "official" answer is probably that you should have a table tblSurveys with the survey names, and a table tblQuestions with the questions.
If there is any overlap between the questionnaires (i.e. if they have questions in common), you'd create a third table tblSurveyQuestions that lists the questions for each survey:
SurveyIDQuestionID
11
12
13
21
22
24
25
31
34
36
This table implements a many-to-many relationship between tblSurveys and tblQuestions.
This setup would allow you to analyze not only the individual questionnaires, but also how a "shared" question is answered across the surveys.

But on the other hand, if the questionnaires are completely different, you might simply create different tables for each of the questionnaires (my personal preference would still be for the setup described above.)
Best wishes,
Hans

iksotof
3StarLounger
Posts: 313
Joined: 04 May 2010, 15:18

Re: Survey DB Modelling - Access

Post by iksotof »

thanks Hans, I was thinking pretty much that. It's been a while, nice to re aquainted and I must say, like the clogs!

User avatar
HansV
Administrator
Posts: 78474
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Survey DB Modelling - Access

Post by HansV »

iksotof wrote:I must say, like the clogs!
Thanks! Nice to see you here.

:whisper: Count yourself lucky that you didn't see my previous user picture... :grin:
Best wishes,
Hans