If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > simple questionnaire system

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-16-09, 02:52
btx btx is offline
Registered User
 
Join Date: Jun 2009
Posts: 3
simple questionnaire system

I would like to design a simple questionnaire system, I don't know whether the following DB design is suitable, please give me some comments. THX!

--------------------------
Q: What pet do you like most?
A. Dog B. Cat C. Fish D. Rabbit

Q: What is your name?
A: Peter (input by the user)

--------------------------

Table 1: questionaire
questionaireID (int) [pk]
title varchar(100)

Table 2: questions
questionID (int) [pk]
questionaireID (int) [relationship with questionaire.questionaireID]
title varchar(255)

Table 3: answers
answerID (int) [pk]
questionID (int) [relationship with questions.questionID]
answer varchar(255)

Table 4: userAnswers
userAnswerID (int) [pk]
questionID int [relationship with questions.questionID]
answer varchar(255)
userID int
responseDate datetime
Reply With Quote
  #2 (permalink)  
Old 06-16-09, 05:02
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Quote:
Originally Posted by btx
I would like to design a simple questionnaire system, I don't know whether the following DB design is suitable, please give me some comments. THX!
Why? Wouldn't it be easier to simply use an on line survey tool?

That way you don't need to code anything - just produce your questions, send out the survey to a bunch of email addresses then analyise the results on line. I did a quick google and came up with loads, here's just a few:I'd suggest trying these out first and see if they meet your needs.

Mike
Reply With Quote
  #3 (permalink)  
Old 06-16-09, 10:34
btx btx is offline
Registered User
 
Join Date: Jun 2009
Posts: 3
Oh~thx for your suggestion!
but it just a part of my system

Quote:
Originally Posted by mike_bike_kite
Why? Wouldn't it be easier to simply use an on line survey tool?

That way you don't need to code anything - just produce your questions, send out the survey to a bunch of email addresses then analyise the results on line. I did a quick google and came up with loads, here's just a few:I'd suggest trying these out first and see if they meet your needs.

Mike
Reply With Quote
  #4 (permalink)  
Old 06-16-09, 10:52
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Quote:
Originally Posted by btx
but it just a part of my system

Care to expand?
My initial impression was that it was just for homework
Reply With Quote
  #5 (permalink)  
Old 06-16-09, 11:16
btx btx is offline
Registered User
 
Join Date: Jun 2009
Posts: 3
no, not my homework, actually, I'm self learning!
Just planning a survey system, since that I don't have much exp. in db design, I hope someone can comment my design.



Quote:
Originally Posted by mike_bike_kite

Care to expand?
My initial impression was that it was just for homework
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

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