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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:52:16+00:00 2026-05-22T14:52:16+00:00

I’m doing a database for a products list and I’m having some difficulty visualizing

  • 0

I’m doing a database for a products list and I’m having some difficulty visualizing the structure. The main list is divided by systems, which are then divided by usage; all of these with their corresponding images. Additionally, I have a tabbed menu, specific to each system, that shows description, specifications, downloads and manuals. Like this:

System 01 – Menu 01 – All images

  • Usage 01 -> images (sub-set)
  • Usage 02 -> images (sub-set)
  • Usage 03 -> images (sub-set)

System 02 – Menu 02 – All images

  • Usage 01 -> images (sub-set)
  • Usage 02 -> images (sub-set)
  • Usage 03 -> images (sub-set)

System 03 – Menu 03 – All images

  • Usage 01 -> images (sub-set)
  • Usage 02 -> images (sub-set)
  • Usage 03 -> images (sub-set)

I have the html template. The idea is that by selecting a product by system, the tabbed menu, a main image and thumbnail images display (I’m using Ajax for this). But is also possible to select a product by usage, and this can fall under two or more systems.

My problem is the structure. I have a general idea but just started working with databases so it might not be the best for this project. I thought of 3 tables:

  • 1st table has all systems with tabbed menus and images;
  • 2nd table has usages, and corresponding system IDs and images IDs;
  • 3rd table would have to relate the previous ones, but I’m not sure how, or if it’s the right approach.

A different but related question would be about the best practice when storing images. I believe storing the path is more efficient and I’ve read people recommending either type ‘varchar’ or ‘blob’ for this, is there any restriction to use one or the other?

I know it’s a -beginner’s- generic question but I hope someone can shed some light. 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-05-22T14:52:16+00:00Added an answer on May 22, 2026 at 2:52 pm

    I would get out a sheet of paper and start drawing circles to represent your “entities” and lines to represent your relations. Generally speaking, you start with an Entity (something to model) and start listing fields you want to remember about it. Each field should be directly related to that entity and not exist by itself, like color, size, etc.

    When you start to have multiple choices for the same fields, you may need a separate table. If you want to store a single list of these choices, you may need two tables, like a color table, and a many to many table only referencing the primary keys of both tables. This way you can pick a color RED and see all the products that are RED, or pick a product and see all of it’s related colors.

    Primary keys are the main way of accessing a record, should always be unique, and usually dictates the sort order of how the table’s records are stored on disk.

    Foreign keys are fields in tables that usually refer to primary keys of other tables.

    A good start is looking at database normalization.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have a text area in my form which accepts all possible characters from
I have a reasonable size flat file database of text documents mostly saved in
I'm having trouble keeping the paragraph square between the quote marks. In firefox the

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.