Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 638
Caveatrob Avatar asked Oct 30 '09 19:10

Caveatrob


1 Answers

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.

The model the above link:

enter image description here

like image 197
mjv Avatar answered Sep 28 '22 00:09

mjv