473,413 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

database design query

Hi,
I am creating an website which will allow users to create their own
surveys.the surveys they create are then stored in a database, so that
other people using the website can answer the survey and their answered
surveys will also be stored in the database so that the person who
originally created it can view the responses.
Im having some problems deciding on the database design and just
wondering if anyone can help pls
The part im stuck on is how to create tables to store the completed
surveys..i already have tables to store the survey title,questions and
the answer options for each question
eg whats ur fave colour?
answer options could be red,yellow or green etc..
Now how would i store the answers eg if the user picks red,should this
be a completely seperate table?
really appreciate any help with this as ive been struggling with it for
a while. all suggestions welcome
thanks

Nov 13 '05 #1
3 1473
look for an article/discussion that Keri Hardwick participated in like
1998 and mentions the word "survey" in either the subject or the
content of the message. she explains how to do it there - built
specifically for a web page etc.

Nov 13 '05 #2
From: "Keri Hardwick" <k...@removethis.sprintmail.com> - Find messages
by this author
Date: Fri, 05 Oct 2001 18:34:01 GMT
Local: Fri,Oct 5 2001 2:34 pm
Subject: Re: Questionnaire application (or data model)
Reply to Author | Forward | Print | View Thread | Show original |
Report Abuse

You will save yourself a lot of grief down the road if the table to
store
answers looks more like this:

SurveyId
QuestionId
Answer

rather than this:

SurveyId
Q1
Q2
Q3
Q4
....

Keri

"Nelson Fleet" <roadr...@aol.com> wrote in message

news:86**************************@posting.google.c om...

I'd read the entire thread if I were you. A few interesting ideas in
there. And Keri's advice is right on the money. Nice thing about her
design is that it's so easy to add questions and summarize your
results, it's just silly. and if you can write ASP or something like
it, you can basically create a single page (or maybe two pages) and
just use the ASP to read the questions from your DB, create your page
on the fly, and write the answers back to a different table...

Nov 13 '05 #3
Hi
thanks for the reply,ive had a look thru the entire thread and its
helped a lot
cheers :-)

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Lefevre, Steven | last post by:
Hey folks - Thanks to everyone who gave input to my concerns. Of course, we don't intend to have the mysql port open to the world. We will have Apache/PHP connect on a unix socket, or to another...
3
by: Stefanos | last post by:
Hi everybody, I need some help on calculated values in my database design. I'm creating an accounting / business management application with the usual modules like A/R, A/P, Inventory, etc. ...
5
by: Don Vaillancourt | last post by:
Hello all, Over the years as I design more database schemas the more I come up with patterns in database design. The more patterns I recognize the more I want to try to design some kind of...
3
by: cassandra.flowers | last post by:
I'm designing a database because I have to do it for the preperation work for my A-Level ICT exam. The database is for a building company. It has to store information on building projects...
5
by: perspolis | last post by:
hi everyone In my accounting database ,there are several account like Persons,Banks,.... I design them in separated table. in your opinion ,it's better to have all in one table or separated...
29
by: MP | last post by:
Greets, context: vb6/ado/.mdb/jet 4.0 (no access)/sql beginning learner, first database, planning stages (I think the underlying question here is whether to normalize or not to normalize this...
3
by: ryan | last post by:
Lets say i have a database where users can upload their dvd collection. I want to be able to do a query where i can select all the users who have a certain DVD. Can someone point me in the right...
12
by: nyathancha | last post by:
Hi, I have a question regarding best practices in database design. In a relational database, is it wise/necessary to sometimes create tables that are not related to other tables through a...
3
by: Paul | last post by:
Hi all, I have posted a question in the Database design and theory ng, but I expect a lot of you will have suggestions to help me (and that ng doesn't seem very active). The post is here: ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.