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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:22:47+00:00 2026-06-08T00:22:47+00:00

Sometimes creating a separate table would produce much more work, should I split it

  • 0

Sometimes creating a separate table would produce much more work, should I split it anyway?

for example: In my project I have a table of customers, each customer has his own special price for each product (there are only 5 products & more products are not planned in the future), each customer also have unique days of the week when the company delivers to him the products.

Many operations like changing days/price for a customer, or displaying days & prices of all customers would be much easier when the days & product prices are columns in the customers table and not separate tables, so is it refuted to create only one big customers table in such case? What are the drawbacks?

UPDATE: They just informed me that after a year or so there’s a chance that they add more products, they say their business won’t exceed 20-30 products in any event.
I still can’t understand why in such case when product’s prices has no relation (each customer has his own special price) adding rows to Products table is better then adding Columns to Customers table?
The only benefit I could think of is that customer that has only 5 products won’t have to ‘carry’ 20 nullable products (saves space on server)? I don’t have much experience so maybe I’m missing the obvious?

  • 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-08T00:22:48+00:00Added an answer on June 8, 2026 at 12:22 am

    Clearly, just saying that one should always normalize is not pragmatic. No advice is always true.

    If you can say with certainty that 5 “items” will be enough for a long time I think it is perfectly fine to just store them as columns if it saves you work.

    If your prediction fails and a 6th items needs to be stored you can add a new column. As long as the number of columns doesn’t get out of hand with very high probability, this should not be a problem.

    Just be careful with such tactics as the ability of many programmers to predict the future turns out to be very limited.

    In the end only one thing counts: Delivering the requested solution at the lowest cost. Purity of code is not a goal.

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

Sidebar

Related Questions

Basically I am creating a summary table. The issue is that sometimes the data
I have a managed object context in a separate thread that is creating a
Sometimes one when creating SQL queries one assumes that one of the Index should
I get this error sometimes reported when creating a dialog, i haven't experienced the
When creating iPhone apps in simulator, I sometimes see messages like Springboard failed to
Here is how I'm creating a file: System.IO.File.Create(Server.MapPath(..) + name + .html); But sometimes
Sometimes I feel the urge to put some more expressiveness in my git commit
I'm creating a process with the System.Diagnostics.Process object that sometimes crashes badly and Windows
So, I am creating a transaction database table to store, well, transactions between the
The CoreData documentation says You can sometimes benefit from creating your own unique ID

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.