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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:05:46+00:00 2026-05-26T13:05:46+00:00

How should I set up my database / table, if I do not know

  • 0

How should I set up my database / table, if I do not know the number of fields I would populate per record?

For example, if I have a web form that allows a user to enter all the cars he owns, and I don’t want to limit him to a certain number, how would I store this in the database end?

The above problem extends to similar situations such as storing a user’s order (variable number of items per order) etc.

  • 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-26T13:05:47+00:00Added an answer on May 26, 2026 at 1:05 pm

    In Relational Database Management Systems (RDBMS) instead you create child records in a dependent table that relate child entities (cars) with parent entities (users). There is a concept known as database normalization, and the objective is that each table contains data for a single type of entity.

    So you have a user table with the user information:

    user_id | user_name | email             | ...
      1234  | User1     | user1@example.com | ...
      2356  | User2     | user2@example.com | ...
    

    Then another table for storing the information of each car of a user:

    user_car_id | user_id | car_label | make      | model | ...
              1 |   1234  | MyCar     | Ford      | 2011  | ...
              2 |   2356  | A Car     | Chevrolet | 2010  | ...
              3 |   1234  | MyOtherCar| BMW       | 2000  | ...
    

    So instead of storing the info of the cars in the user table, you have a table for storing car (user_car) information related to each user by way of the user_id column. This is an example of a one-to-many relationship, in which one user can have many related cars.

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

Sidebar

Related Questions

I have a table where a int column should either be set to zero
You often see database fields set to have a magnitude of 255 characters, what
How long should it take to run ALTER DATABASE [MySite] SET READ_COMMITTED_SNAPSHOT ON I
I have the following code that seems like it should set my insertParameter but
How should I set WordWrap = false to a System.Windows.Forms.Label ? I have a
We have a database with a tables called 'Sites' This table has the columns,
In theory, this code should set the new lock status to the users and
Application[temp] = 8; should set the value 8 to the key temp . However,
None of the guides/notes/articles that discuss IDisposable pattern suggest that one should set the
Should you set all the objects to null ( Nothing in VB.NET) once you

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.