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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:48:02+00:00 2026-06-18T15:48:02+00:00

I have been asked to describe what it wrong with this data structure, and

  • 0

I have been asked to describe what it wrong with this data structure, and how I would improve it.

Here is the data structure:

Image

Here is what I have so far:

  • The Car price is set only if the car is in the showroom, it would make more sense to put the price of the car in the car table

  • It makes no sense to store NULL data in the Car Table, it would be better to have a layout similar to this:

    Car table

  • There needs to be a quantity heading to show how many of that particular car are in the showroom as some showrooms have multiple of the same cars

The new table I drew up still has repeating data, which I vaguely remember is a no no when drawing up a data structure, and so I think I need to make a 3rd table? I’m really not sure.. .

I just need a bit of help as to what is wrong with the current data structure and if there is any way to improve it, any help is appreciated.

  • 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-18T15:48:03+00:00Added an answer on June 18, 2026 at 3:48 pm

    One problem is that the Car table stores two distinct things – it stores makes, and it stores models.

    So you should split that up, something like:

    Makes: columns makename, makecode

    Models: columns makecode (foreign key for makes), modelname, modelcode

    And now showroom table will only relate to models, so it can’t reference a make by mistake.

    Since one model can have many showroom table rows related to it, you can’t merge the two tables meaningfully, so keep them separate and go from there.

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

Sidebar

Related Questions

I have been asked this question, but failed to find an article that describe
I realize that similar questions have been asked about this before here on SO,
I have been asked to improve the memory efficiency of an application that is
I know a lot of questions have been asked regarding this topic, but none
I have been asked to work with json data in order to create a
I have been asked to set up a demo site which calls out to
This question seems to have been asked numerous times before, for example here1 ,
I have been asked to set up a language extension in OpenCart. I am
Questions have been asked on SO about this, but they are over a year
I have been asked by a client to map data, but the client does

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.