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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:21:33+00:00 2026-06-16T07:21:33+00:00

Hi I am trying to design a database for an e-commerce website but I

  • 0

Hi I am trying to design a database for an e-commerce website but I can’t seem to find a way to do this right, this is what I have so far:
schema

The problem appears at the products.I have 66 types of products most of them having different fields.I have to id’s but both of them don’t seem very practical:

OPTION A:

At first I thought I to make a table for each product type, but that would result in 66 tables which is not very easy to maintain. I already started to do that I created the Product_Notebook and Product_NotebookBag tables. And then I stopped and thought about it a bit and this solution is not very good.

OPTION B

After thinking about it a bit more I came up with option B which is storing the data into a separate field called description. For example:

"Color : Red & Compatibility : 15.6 & CPU : Intel"

In this approach I could take the string and manipulate it after retrieving it from the database.

I know this approach is also not a very good idea, that’s why I am asking for a more practical approach.

  • 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-16T07:21:35+00:00Added an answer on June 16, 2026 at 7:21 am

    See my answer to this question here on Stack Overflow. For your situation I recommend using Entity Attribute Value (EAV).

    As I explain in the linked answer, EAV is to be avoided almost all of the time for many good reasons. However, tracking product attributes for an online catalog is one application where the problems with EAV are minimal and the benefits are extensive.

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

Sidebar

Related Questions

I am trying to find the best way to design the database in order
I'm trying to understand how to design a database that can accommodate an indeterminate
I'm trying to build out a mysql database design for a project. The problem
Hey im new to database design and having trouble trying to figure this one
I'm trying to decide on a database design. More specifically, this is a sub-part
I'm trying to design application that will have UI with database in the backend.
I am currently trying to design a membership type database design that can keep
I am trying to design a database structure for a website that offers people
I am trying to discover the best way to design my database to organize
Maybe i'm going about this wrong but my working on a database design for

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.