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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:10:22+00:00 2026-06-12T04:10:22+00:00

I’m trying to build a strong database that’s normalized and has room to expand

  • 0

I’m trying to build a strong database that’s normalized and has room to expand if needed. Does this look like I might have problems? Could this be more efficient? Most importantly, is this database normalized the best it could be? Thanks for having a look!

enter image description here

EDIT I

I’ll try and explain my many to many relationships.

Attributes: This site plans of carrying guns, ammunition, accessories, and etc … each product can have many attributes and some could have one. For example, ammunition for a rimfire, handgun, and centerfire will have the same attributes while shotguns will have different attributres. So my thought is that in order to make attributes flexible I needed to have the tables set-up like I have in my example. Hopefully that makes sense – I did struggle with this.

Supplier: There can be multiple suppliers for a product.

Images – Products will have a main picture and an unknown amount of additional images.

Categories: A product could appear in multiple categories. Example, a firearm could appear in semiautomatic rifles as well as tactical firearms.

Reviews: A single product will have multiple reviews.

PLEASE DISREGARD the “new field” fields in the product table. That is unattended, I forgot to remove those before the screenshot.

EDIT II

I redesigned the schema using everyone’s suggestions. Please take a look and see if I’m getting closer. I really appreciate everyone’s time on this 😉

enter image description here

  • 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-12T04:10:23+00:00Added an answer on June 12, 2026 at 4:10 am

    Why do you need to have many-to-many relationship between product and attributes? Can an attribute belongs to multiple product as well? If not, remove the product_attributes table. Create a column called attribute_id on the table product a reference it to table attributes on column attribute_id.

    I also think that the relationship between product and images table is only one-to-many. Delete the table images and create a new column in table product_images called image_path. Do this also with product and reviews.

    I found many many-to-many relationship in your schema.

    Always remember that joining a table is very expensive for the application level.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to render a haml file in a javascript response like so:
I know there's a lot of other questions out there that deal with this
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to create an if statement in PHP that prevents a single post

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.