473,405 Members | 2,167 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,405 software developers and data experts.

Survey - storing multiple choice and free-form text

1
I've been asked to build a survey database. The survey is to be dynamic, allowing any number of questions to be part of the current survey. So I've got a Survey table with SurveyDetail, and a Questions table with a column named 'Active' for that purpose. This makes storing answers a bit difficult. Some are multiple choice, in which case it's as simple as storing an AnswerID in SurveyDetail that links to a Answer table that links to the Question table. But I'm stumped as to how to store free form text. The only solution I've been able to come up with is to store both AnswerID and Answer (text field) in SurveyDetail, allowing both to be NULL and outer joining to the Answer table. This is obviously not the best solution. I'm sure there is a more elegant way of doing this. I hope I've made myself clear, any help is appreciated. Thanks!
Feb 27 '07 #1
1 2747
NeoPa
32,556 Expert Mod 16PB
I'm getting some of what you're saying, and it's clear you're not here to learn any basic concepts, but I'm not really getting precisely what your problem is. From the wording of your question I'm sure you'll understand why that's important, coming from the other side of a web page.
Feb 28 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

181
by: Tom Anderson | last post by:
Comrades, During our current discussion of the fate of functional constructs in python, someone brought up Guido's bull on the matter: http://www.artima.com/weblogs/viewpost.jsp?thread=98196 ...
0
by: sydemon | last post by:
Hello, I have the 3.2.2 version of the big nose bird survey script and have a problem with cookies. When i allow the survey users to view the results, the cookies work and prevent multiple votes....
0
by: Kenzo Fong | last post by:
Hi everyone, Sorry to fill up this newsgroup with this request, but for coursework at Erasmus University (the Netherlands) I need to conduct a survey regarding the use of certain open source...
0
by: Goh, Yong Kwang | last post by:
Dear all, We are Chen, Kian Siong and Goh, Yong Kwang from the National University of Singapore (NUS), School of Computing performing academic research for our honours year thesis. Our current...
5
by: DFS | last post by:
I've written several survey systems in which the majority of the questions have the same or similar responses (Yes/No, True/False, scale of 1 - 5, etc). But this latest survey system I'm working...
3
by: Yurk Yurk | last post by:
I need to create a database or something that will allow me to input all of the results of a survey and then search the results for trends and stuff. For example, it might have questions like: ...
0
by: Ralph Spitzer | last post by:
Hi all! I'm doing a research project on the motives of free software / open source software developers. This survey follows a somewhat different approach than some earlier studies and tries to...
12
by: pietlinden | last post by:
Hi, sorry for the vague subject. I am working for a company that finds respondents for surveys and then sends the respondent list and the survey to another company to perform the actual surveys. ...
1
by: Sir Galahad | last post by:
I need to create a web-app. It should be a "survey/story container", a sort of guided tour across a list of question (different kind of question must be supported: multichoice, one-choice, free...
1
by: benmanns | last post by:
I am writing a web application with a MySQL backend that will have multiple users taking various surveys. Each survey has a different number of questions; each question has two types of answers:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.