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

  • Home
  • SEARCH
  • 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 8546285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:58:55+00:00 2026-06-11T12:58:55+00:00

The database that I need to create holds data of a vehicle tracking system

  • 0

The database that I need to create holds data of a vehicle tracking system. So several vehicles keep sending data(about 20 parameters) to my site that stores these values in the database.

The parameters of a vehicle include the vehicle number and the hardware id as constant, the rest keep changing. So from one vehicle these two parameters are always constant.

I will have another table in this database containing the login credentials of the users and I would like to create a link between the two tables with the vehicle number(primary key) in the login table and with the vehicle number in table containing parameters.

Since the vehicle number column is redundant I cannot have it as the primary key.
So things I would like to know:

  1. What way can I achieve the link between tables
  2. Is there a good way so that I dont store this vehicle number and hardware id so many times.
  3. Should I be storing each vehicle’s data in separate table rather than all in one table?

P.S: This is the first time I am designing a database since I have only been a programmer all the time, so expecting good suggestions.

  • 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-11T12:58:56+00:00Added an answer on June 11, 2026 at 12:58 pm

    Putting vehicle number into the login credentials might be a very bad idea. I don’t know who your users are, but I wouldn’t want to use a site that forced me to change my login when I bought or sold a car. And what about my history? Do I lose all that?

    Business logic in primary keys means bad design.

    Create a surrogate primary key and use that to JOIN to the vehicle. A single user may have many vehicles, so put the foreign key from the VEHICLE table to the USER table.

    Putting the vehicle data in separate table isn’t helpful if it’s 1:1. It won’t change the fact that all but two of the values are changing.

    You’d reconsider this idea if your requirements include keeping a history of changes. Since you don’t mention anything about it, I’m only guessing here.

    None of the questions you posed will have any effect on efficiency or application speed. You don’t give enough detail to allow someone to have must of an impact on your design. You’re guilty of pre-mature optimization at this point.

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

Sidebar

Related Questions

I need to create a table that will combine two database tables together. Both
I need to create a simple application that would generate reports based on database
i need run code that will create a database and populate tables. i am
I have some data in a database that I need represented in an XML
Right now, in my internship, I'm assigned to create a system that holds employee
So basically I've created a MYSQL database that holds information about a gaming server
I am currently developing a system that holds all relevant master data like for
I have a number of reports that I run against my database that need
I've a problem with LINQ. Basically a third party database that I need to
I have a database entry that I need to update. This method obviously doesn't

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.