views:

552

answers:

2
+3  Q: 

Survey Data Model

I'm developing a simple survey module for an ASP application I'm working on and I'd like to get some suggestions on the data model.

Questions can be one of three types - multiple choice, multiple answer; multiple choice, single answer, and free response.

I'm thinking of the following tables:

  1. Question - with a question type discriminator ifeld
  2. PossibleAnswers- with a questionID and answer text field
  3. SurveyQuestionResponse- with a questionID, a clientID, and answer text

Am I making this too simple?

+5  A: 

Take a look at the
    Data Model library at databaseanswers.org
Models #76 thru #81 seem pertinent, if only for "inspiration".

A lot depends on the level of sophistication of the surveys you manage, as some surveys in particular dynamic ones (aimed at removing some of the bias) require additional fields for storing properties such as the probabilities with which a particular question (or reply) is used, the many forms of a question and associated probability, and also the recording of the questions and suggested replies that were effectively offered for a give surveyee.

mjv
as of 1/31/10 they're #81 - #84
Simon_Weaver
@Simon, thanks. Too bad these model numbers get shifted around...
mjv
A: 

Why bother when you can get one of the products out there for less than a days work. Check www.NoviSystems.com

Ousama