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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:13:06+00:00 2026-06-05T15:13:06+00:00

I will be storing draw numbers (1-60) in fixed values and fixed order. One

  • 0

I will be storing draw numbers (1-60) in fixed values and fixed order.

One draw has 4 numbers
another has 6 numbers
and another 2 numbers

My idea was to separate each draw type in a separate sql table. The question is, would it be optimal to store the numbers in a single column separated by a delimiter….

ID(int) | numbers(varchar)

or store each number in a separate column instead?

ID(int) | num1(tinyint) | num2(tinyint) | num3(tinyint) | num4(tinyint)

I won’t be needing to search for the numbers when they’re stored.

  • 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-05T15:13:07+00:00Added an answer on June 5, 2026 at 3:13 pm

    If you don’t ever need to search for them separately or retrieve them separately, then they are just one opaque “blob” from the database perspective and you won’t be violating the principle of atomicity and the 1NF by storing them into single filed.

    But, just because that’s the case now, doesn’t mean it won’t change in the future. So at least use the second option. Also, this would allow the DBMS to enforce the integrity of domain and ensure these are actually numbers and just any strings.

    However, to future-proof your data, I’d go even further and use the following structure:

    enter image description here

    In addition to treating numbers in the uniform way and avoiding many NULLs, it’ll also allow you to easily vary the max. number of numbers if that ever becomes necessary. I suspect querying will also be easier in this structure.

    BTW, if there are no (other fields) and a draw cannot exist without at least one number, you can dispense with the DRAW table altogether and just use DRAW_NUMBER.

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

Sidebar

Related Questions

I'm building a social networking type site that will be storing large chunks of
I'm trying to draw shapes that will move around the screen using the LunarLander
My game will play 10 rounds, so each time you advance to a new
I am creating an app that uses an SQL database for storing data. The
I wanted to make a class Draw which will have static method ConsoleSquare() and
The following code will draw an ellipse on an image and fill that ellipse
Is there a set of string attributes I can specify that will draw the
imagine if you will the following string: A Great Movie (1999) DVDRip.avi I am
I have the following string which will probably contain ~100 entries: String foo =
I have a method that will receive a string , but before I can

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.