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 7867691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:46:18+00:00 2026-06-03T00:46:18+00:00

I am designing a Surveying system for a small project in our community. But

  • 0

I am designing a Surveying system for a small project in our community.
But somehow I am getting stuck on how to properly design the system in such a way that
it can be configured at the database side.

My use case is like this:
It’s some sort of a survey system where user is ask a series of questions and depending on their answer
another question would be ask. I am planning to show this as step/wizard pages.

                                   | --- Answer C  --> End Survey
        |--- Answer A  --- Q2 ---- | --- Answer D  --> End Survey                                                       
Q1 ---> |                          | --- Answer E  --> End Survey                               
        |
        |--- Answer B  --- Q3 --- | --- Answer F  --> Q7  ---> End survey
                       |          | --- Answer G  --- Q8  --- | Answer H --> End Survey
                       |                                      | Answer I --> End Survey
                       |                                      | Answer J --> End Survey
                       --- Q4 --- End Survey                  | Answer K --> End Survey

In my diagram, user is first shown Q1 (Question1), if his answer is A, then Q2 will be presented with a list of answer’s (C, D, E) then the survey
stops.
But if user answers B, then he will be shown Q3 + Q4 on the same page. If user answer F on Q3 then next question is Q7 and on and on.

I am thinking of creating a QUESTION table to hold the question and a QUESTION_ITEMS table to hold the list of answers but how do I handle the state transition?

I am actually stuck on how to properly support this kind of requirement where user is able to configure the
question list.

Any thoughts?

My target DB is MYSQL by the way.

Thanks

  • 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-06-03T00:46:19+00:00Added an answer on June 3, 2026 at 12:46 am

    I think it makes sense to have questions and questionitems (aka answers). Then all you need is to link each question_item to its follow-up page. Group the questions together by using a separate column for page.

    Questions

    ID   Name    Page
    1    Q1      1
    2    Q2      2
    3    Q3      3
    4    Q4      3
    

    Question_Items

    ID   Name        Question_ID    Next_Page
    1    Answer 1    1              2
    2    Answer 2    1              3
    

    Etc …

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

Sidebar

Related Questions

Designing forms has always been fun, but getting them to send email on the
When designing a stock management database system for sales and purchases what would be
When designing an rdlc report using the VS 2010 report designer, report items such
Designing my stratified sample library(survey) design <- svydesign(id=~1,strata=~Category, data=billa, fpc=~fpc) So far so good,
Im designing my interfaces for my research project on android. So I added facebook
While designing a class or a function, which way, that is shown below, is
When designing database tables for a fresh new project, is it good practice to
im designing a way the form posts its data. e.g if we have a
When designing Metro apps for Windows 8 with JavaScript, are all features available such
When designing an API for our web app, we'll use the their subdomain as

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.