Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3759762
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:22:01+00:00 2026-05-19T10:22:01+00:00

Firstly I think this question can be related to any language, but I specified

  • 0

Firstly I think this question can be related to any language, but I specified what I was using.

Excuse me if I start to bore also, but I am trying to find out the best way to build a dynamic survey management system.
My client basically has said to me that the data has to be stored in MS SQL as his client has only got MS SQL connector for SAS, which is going to do reporting.

My logic so far is this:
1st. Setup the survey itself, i.e. ask for title, quick overview, etc, etc.
2nd. Define your questions.
3rd. Publish survey.

Now what I have done so far is that when they “publish survey”, I have created a dedicated database table for this survey which will house the responses.
From the admin side of this, they will not be able to modify the questions, maybe the question title but that is about it. They cant add/remove questions.

Question is, is creating individual database tables a good thing? My only worry really is that say the admin creates like 30 questions, I will have 30 columns in that dedicated table. To go with that, this way might be easy for the SAS system to pull in data for reporting. The administrator will not see the survey responses in the admin panel btw.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T10:22:02+00:00Added an answer on May 19, 2026 at 10:22 am

    I have done something similar for a language grading exam. I opted for a more flexible approach with the following tables

    +------+    +-------------+    +-------------+    +-------------+    +----------+
    | Exam |    | Question    |    | Choice      |    | Answer      |    | User     |
    +------+    +-------------+    +-------------+    +-------------+    +----------+
    | id   |    | id          |    | id          |    | id          |    | id       |
    | name |    | questionNb  |    | choice      |    | user_id     |    | name     |
    +------+    | question    |    | question_id |    | exam_id     |    | email    |
                | exam_id     |    | isAnswer    |    | question_id |    | password |
                +-------------+    +-------------+    | choice_id   |    +----------+
                                                      | isGood      | 
                                                      +-------------+ 
    

    This model allowed me to easilly have a 15 questions exam, a 30 questions exam and a 50 questions exam. To adapt this model for survey, you might just have to remove the isAnswer and isGood part and you should be good and replace users data with anonymous general data like age, income, sex.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly, this DB question could be a bit DB agnostic, but I am using
Firstly, I've asked this question elsewhere , but meta.stackoverflow.com seems to think that asking
Firstly, sorry for the difficult question title, but I can't think of anything better.
Firstly, This might seem like a long question. I don't think it is... The
Firstly sorry if this is a common question but I couldn't find anything on
Firstly, please don't dismiss this question - I'm aware it's an ugly situation but
Firstly, I'm aware of this question , but I don't believe I'm asking the
Firstly, I know this [type of] question is frequently asked, so let me preface
This Question arises from a Q&A here I have some doubts that i think
Ok, firstly I have the following code working.. although my question is this; should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.