Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > General > Database Concepts & Design > Database Design for Survey data. How to?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-03, 01:32
shyam131 shyam131 is offline
Registered User
 
Join Date: Jul 2003
Posts: 6
Database Design for Survey data. How to?

I am creating a database of surveys completed by companys over the last 5 years. The question have varied from year to year. Adding questions some years, and dropping some in other years. each survey is about 800 questions. I had the following tables in mind.

Company(Company,CompanyID,Sector,1999,2000,2001,20 02,2003)---the years are to determin when each company participated

1999Survey(Company,CompanyID, Q1, Q2,.....QN)
.
.
.
.
2003Survey(Company, CompanyID, Q1, Q2,.....QN)

Questions(QuestionNumber, Question description,1999,2000,2001,2002,2003)--Again the years are there to determine which years the questions where asked

Does this seem like a good way to oraganize the data. how would the relationships work. My goal is to be able to analyze the data for a given year(averages, sums, percent responce, etc...), and see trends in the data over several years for any question that have stayed constant. Can anyone Help me? Is this a good design
Reply With Quote
  #2 (permalink)  
Old 07-03-03, 05:56
bdimple bdimple is offline
Registered User
 
Join Date: Jul 2003
Posts: 74
Database Design for Survey data.

There are some Data Models for Questionnaires on this page that you might find interesting :-
http://www.databaseanswers.com/data_models/index.htm

B.Dimple
Reply With Quote
  #3 (permalink)  
Old 07-03-03, 06:09
gannet gannet is offline
Registered User
 
Join Date: Oct 2002
Location: Plymouth UK
Posts: 116
I would consider the following structure as a starting point.

Company(comp_id, company, sector, ...)
Question(question_id, question, ...)
Survey(survey_id, year, comp_id, ...)
Survey_Questions(survey_id, question_num, question_id)
Reply With Quote
  #4 (permalink)  
Old 11-05-03, 05:38
John Chen John Chen is offline
Registered User
 
Join Date: Jun 2003
Posts: 12
You need six tables. They are listed below :

Company (CompanyID, ...)

Survey (SurveyID, Year, ...)

Question (QuestionID, Question, ... )

Survey_Question (SurveyID, QuestionID, ...)

Company_Response (CompanyID, SurveyID, QuestionID, Response, ...)

Company_Survey (CompanyID, SurveyID, ...)


Does anybody have better ideas?

(The data model is attached)
Attached Images
File Type: bmp survey_data_model.bmp (267.5 KB, 39 views)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On