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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:53:42+00:00 2026-06-15T23:53:42+00:00

The idea is to design a simple ER diagram for a small application. The

  • 0

The idea is to design a simple ER diagram for a small application.

The application is a question-answer system. Every user should be able to ask question in text format, and then other users can post answers using image.

At the end, the user who asked the question should be able to select an image to be the correct answer.

So the design that I have so far is that three tables:

  • USER with attributes id, username, phone, location, realname, password.
  • QUESTION with attributes id, desription, time, status.
  • IMAGE with attributes id, address

There are many-to-one relationships between IMAGE and USER and between QUESTION and USER.

However, I don’t know how should the relationship between IMAGE and QUESTION looks like.

Should there be a one-to-one relationship between them? Is that a good design?

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-15T23:53:42+00:00Added an answer on June 15, 2026 at 11:53 pm

    If the user should be able to select an image to be the correct answer to a question, this implies there should be multiple images available to select – so no, a one-to-one relationship between the two is not a good idea.

    If any given image is only ever going to be used in one question, then this would suggest a one-to-many relationship from question to image. If the same image can be used in many questions, then this implies a many-to-many relationship.

    Of course, you would need to have a “selected image” attribute on the question table.

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

Sidebar

Related Questions

I have a very simple question but cannot find a simple answer. I have
I want to design a webform that user should fill some fields. The value
I have to design a simple application which has to reside in the SIM
This is a .NET winform application question. I come to this design from time
I'm trying to design a simple user table with a primary key userid ,
I design an very simple application just to calculate Height and Width of display
I am making a simple PHP application with an MVC design. All of the
I have a requirement to create a simple menu/selection design tool - the idea
I have a question concerning cookie storage design. I am developing a web application
I have an HBase schema-design related question. The problem is fairly simple - I

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.