help setting up questionnaire database
Hey everyone its peebman2000, i'm currently building a .Net questionnaire application. I've coded some of the other functionality of the app, now I need to build core part of the app.
I'm having trouble decideing on how to build the database for the questions and answers for the questionnaire part.
I thought of building it this way:
Table:
Question(ques_id, question_text)
Answer(ans_id, answer)''''this hold all possible 250 answers user can choose from''''''
User(user_id, username)
Questiontoanswer(quesans_id, ques_id, ans_id)'''this holds the questionid along with the possible answer id
Questionuseranswer(ques_user_ans_id, user_id, quesans_id)''''this table is used to look up the question and the posssible answer the user selected
This could seem to work, but coding wise i don't feel this is the best set up for the questionnaire application, because each question has either a partA and Part B.
My question is does anyone have a suggestion on the best way to build a question and answer database in SQL?
Let me know and I appreciate any help, thanks.
peebman2000, May 20th, 2008 10:34 AM
Bookmarks