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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:25:49+00:00 2026-06-12T07:25:49+00:00

I have a table where I have information about each asset I have (Laptop,

  • 0

I have a table where I have information about each asset I have (Laptop, Screen, Desktop, Scanners, etc..). I also have another table where I have custom column for each asset (so for a specific desktop I can have a custom column called “Color”)… quick shematic :

Assets Table

AssetID     Description
---------------------------
1           Desktop HP79801

Assets Custom Column

AssetID     Column1     Column2
-----------------------------------
1           Color       BluRay ?

Now I want to store the value for each column. The way I currently do it for each unit is :

AssetID     UnitID      Column1     Column2
-----------------------------------
1           1           Blue        Yes
1           2           Blue        No
1           3           Black       No
1           4           Blue        Yes

Now my question, is there a more efficent way to do this and how can I increase the number of column to infinity in an efficent way also ? Is it possible ?

In the end, how to store custom product attributes with effecienty ?

  • 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-12T07:25:50+00:00Added an answer on June 12, 2026 at 7:25 am

    In short, yes.

    What you have there isn’t scalable in the slightest. What you want is to have a table for your assets, a table for the custom parameters and a “link” table. Then, enter multiple values into your link table rather than multiple columns.

    As an example:

    Assets Table

    AssetID     Description
    ---------------------------
    1           Desktop HP79801
    

    Attributes Column

    AssetAttr       Column1     
    -----------------------------------
    1               Color
    2               Size
    

    Link table

    AssetID     UnitID      AttrId        AttrValue 
    -----------------------------------
    1           1           1             Blue
    1           1           2             Big
    1           2           1             Orange
    1           2           2             Giant
    

    If your attributes are all model specific though, you may also want to add a AssetId column to your assets custom column, but I wouldn’t personally do that unless none of your assets at all shared attributes.

    You may also want to tag this further. You may want to annotate your attributes table with a data type, and maybe have another table related to the attributes table holding the possible data values, then, in your link table, insert the ID of the entry from the aforementioned table.

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

Sidebar

Related Questions

I have a products table which contains information about products. Each products can have
I have two tables. Widgets, which has information about each widget (Color, size, etc);
Say I have at database table containing information about a news article in each
Greetings friends, In my MySQL database, I have 'MAB' table which contains information about
I have a table in which users store scores and other information about said
I have two tables: a schedule table that contains information about how an employee
I have a table that displays information about a list of customers. I want
Suppose I have two tables: Table A has information about the stock holdings of
I have a database which holds information about user-created items. Each item can have
I have a table which would contain information about a certain month, and one

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.