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

  • Home
  • SEARCH
  • 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 6709525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:53:33+00:00 2026-05-26T07:53:33+00:00

I am a web developer but I need to include a database for my

  • 0

I am a web developer but I need to include a database for my website but I am very weak when it comes to producing the correct database. My website is an online exam system where users answer questions by selecting answers from the following options given to them.

What I asking is what fields would you include in the answer table, studentanswers table, questions table and I probably need to inlude an options table as there could be different types of options e.g true or false, a,b,c, or even a,b,c,d,e. also some questions may have one answer by selecting one option and other questions may have multiple answers by selecting multiple options.

Thank you and please share me your ideas as I can use then to help build a suitable database for this website.

My Structure so far was this:

Question Table:

TestId (PK)
QuestionId (PK)
QuestionContent

Answer Table:

AnswerId((PK)
AnswerContent
AnswerCorrect
TestId (fK)
QuestionId(fK)

StudentAnswer Table:

Session ID(pK)
QuestionId(pk)
StudentAnswer(pk)
StudentId(pk)

Havn’t implemented options table because I do not know how to do it correctly

  • 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-26T07:53:34+00:00Added an answer on May 26, 2026 at 7:53 am

    I’d suggest maybe showing us what you have so far and then maybe we can help tweak it for you. Here is how I might approach it though but I’d have to think about it more and know more details:

    -Have a student’s table with all of the information Name, ID (some type of unique identifier), Year, etc.

    -As for the questions and answers I thought of maybe having a table for each type of question but after further though the best approach would be to just simply have one questions table and one answers table for all types of question. This is because there is a variable amount of questions and answers possibilities that you will not know ahead of time.

    -In the questions table you will have “Question” (the actual question), “Question Type” (true/false etc.), “Question ID” (Unique ID)

    -In the answers table you will simply have “Answer” and “Answer ID” (this is most important and will be a foreign key linking to Question ID in the previous table).

    -Finally you will have a Results table with “Student ID” (FK linking to student’s table), “Question ID” (FK linking to Question table), and “Answer” for the student’s answer.

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

Sidebar

Related Questions

I am primary a web developer but I do have a very good understanding
I need to reference FSharp.Core to a Visual Web Developer Express project (C#), but
I'm a full time web developer but I have my roots as a desktop
I am web developer who currently works mostly on his own but, some projects
I am a Web developer who spends 99% of his time in Linux, but
Being a web developer, I know how event driven user interfaces are written, but
I am not a DBA by any means, but being a web developer means
I've decided to develop a database driven web app, but I'm not sure where
i'm not a java developer, but i need to write a small applet to
I'm using Visual Web Developer 2008 Express Edition and I need your assistance since

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.