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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:02:21+00:00 2026-06-16T22:02:21+00:00

I currently have a separate database for every competition year and I know I

  • 0

I currently have a separate database for every competition year and I know I can combine the majority of the tables between databases by simply adding a year field. However, in each database there are 2 tables that can vary dramatically from year to year: matches and stats.

In the match table, the number of team fields can vary from 4-6, scoring fields from 1-4 and other fields depending on how scoring data is tabulated. And in the statistics table, the same scoring data is tabulated on a per team basis to allow for event rankings.

I guess my question is would it be better for me to combine, storing the varying data fields as one in a serialized array and use PHP’s array_multisort() to get the data in order, or leave it as is, or do something else?

  • 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-16T22:02:23+00:00Added an answer on June 16, 2026 at 10:02 pm

    Combining the tables is the logical choice, given you don’t have an enormously large amount of records (as AndreKR said). Sorting using array_multisort() works like a charm. Just keep in mind if you aren’t sorting on the same fields every time, you’ll want to call the function using call_user_func_array() which can be a little tricky if you haven’t used it before. I had to do this to achieve the intended order of display for my data.

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

Sidebar

Related Questions

Is it possible to combine Underscore's filter and map? I currently have two separate
I have some the page elements split into separate visual blocks. I am currently
I currently have 4 tables. Product, Category, SubCategory, ProductSubCategory. Category has a OneToMany SubCategory
I have a database containing records collected every 0.1 seconds, and I need to
I have a flat file database (yeah gross I know - the worst part
I currently have a PostgreSQL database, because one of the pieces of software we're
Currently our new database design is changing rapidly and I don't always have time
Yet another How-to-free-memory question: I'm copying data between two databases which are currently identical
Each product in my database can have at least three and sometimes four or
Current I have a seperate maven module for my database access, all my DAO

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.