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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:21:04+00:00 2026-05-30T06:21:04+00:00

i am currently planning out my next project which is a text based mmorpg

  • 0

i am currently planning out my next project which is a text based mmorpg game. I am currently trying to design certain parts of the database and have hit a bit of a problem that i have never had before. One part of the game allows the player to buy a car and add addons to it. I was going to have a different table altogether to manage the addons for the car, but a user could have up to 100 addons for a single car, which would require over 100 fields, of course i am not happy with this many fields in one table as it could become difficult to manage, is there any other way to split them up into multiple table?

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-30T06:21:05+00:00Added an answer on May 30, 2026 at 6:21 am

    Why does each addon have to be a separate column? Couldn’t you have a many-to-many join table that would link car to addon?

    Car
    ID | Owner
    1  | Jacob
    2  |  Mary
    
    Addon
    ID | Name        | Price
    1  | Flame decal | $10
    2  | CD Changer  | $150
    
    Car_Addon
    Car_ID | Addon_Id
    1      |  1
    1      |  2
    2      |  2
    

    This indicates that Jacob’s car has a flame decal and a cd changer, while Mary’s car only has a cd changer.

    Advantages of this approach:

    • You can use foreign key constraints to ensure that no invalid records can be created
    • It’s easy to query in either direction — which addons does this car have or which cars have a given addon
    • The meaning of the relation is clear — you’re not relying on decoding serialized data within a single field
    • You can store data about the association between car and addon — the car_addon table can have a column for when the addon was added to that car, how it was paid for, whether it was part of a discount package, etc.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently planning out a project involving creating a shell replacement for Windows (based
I'm currently planning the infrastructure for my future web project. I want to go
I'm currently planning a new web project. Clients are going to connect using a
I am currently in the planning stages of a game for google app engine,
I am planning on deploying git for a project I am currently working on
I'm currently in the planning phase of a project and I came across an
i am currently in the process of planning a social network project of mine.
I'm currently planning out a Java server that is running a thread pool that
I am planning to create a screen saver. Thinking of trying out some WPF
Good Afternoon, I'm currently planning a web-app/service project with a geolocation-enabled user model (lat/lng

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.