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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:00:31+00:00 2026-05-20T01:00:31+00:00

In setting up a MySQL database, consider that I have a table of products

  • 0

In setting up a MySQL database, consider that I have a table of products (tblCar) named:

  • Coupe
  • Sedan
  • Mini-van
  • Truck

And a list of (1980’s) accessories:

  • Moon roof
  • Chrome wheels
  • Window Tint

And a list of of options:

  • paint color
  • interior finish
  • interior color
  • Blu-Ray player in-dash

Now, let’s setup some ground rules:

  • Coupe can choose from any accessory or option
  • Sedan can choose from any accessory but provides no Blu-Ray option
  • Mini-van has window tint as an accessory and can choose from all options
  • Truck only has chrome wheels, tint accessories and only paint options

I need a tblCar setup, that much is clear. But how do I manage a table of tblAccessories and tblOptions without duplicating the line items themselves. Let’s pretend that I only want description information for accessories and options and not prices as those would surely be different for the car they were installed in.

Would this be a case for tblAccessoriesHelper that holds a list of values of carID and accessoryID where the two should meet or this there a better method?

  • 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-20T01:00:31+00:00Added an answer on May 20, 2026 at 1:00 am

    You would have junction tables, that join the two together

    tblCar
    tblAccessories
    tblOptions 
    tblCarAccessories
    tblCarOptions
    

    There is another naming convention that uses the prefix “jct” if you are naming tables using “tbl”. I would have named the tables

    Car
    Accessory
    Options
    CarAccessory
    CarOptions
    

    (name tables using the singular form, but “options” is special, because “option” could be a reserved/special word in some DBMS)

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

Sidebar

Related Questions

I have a linked table in ms-access that pulls data from a mysql database.
I have a mysql database with a table that has several fields including: enter_date
I'm setting up a custom blog that grabs the posts from a mysql database.
I have a mySQL database that tracks our projects and drives our website's display
If I have two tables in a MySQL database that both have a column
I have a table with a field which contains strings in my MySQL database.
I am setting up a very small MySQL database that stores, first name, last
I have been working on a mysql database that I set up with phpmyadmin...
Okay, so let's say I have a mysql database table with two columns, one
I have a database (Mysql) with some fields in UTF-8 (I can change that

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.