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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:18:54+00:00 2026-05-30T18:18:54+00:00

I working a fairly simple database application where I am tracking MLB baseball pitchers.

  • 0

I working a fairly simple database application where I am tracking MLB baseball pitchers. Currently, I have two tables:

  1. pitchers => name:string, …
  2. starts => start_date:date, pitch_count:integer, strikes:integer, balls:integer, era:float, run:integer, win:integer

With this configuration it would be fairly simple to develop a report for each pitcher provided I have all of the pitchers historical starts.

My question is what is the best way to handle the two situations below when you don’t have complete historical start information:

  1. Situation 1 – You have no historical start detail, but you do have historical summary information: starts, wins, pitches, etc. per year and lifetime. This is the case of a pitcher that has retired.

  2. Situation 2 – You have some historical start detail as well as the historical summary information described in Situation 1.

What’s the best way of handling this:

Should I create dummy entries in the starts stable to represent the summary information or should a create a third table that holds the summary information and simply update that table after every start for the active players, or is there some other alternative best practice.

  • 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-30T18:18:55+00:00Added an answer on May 30, 2026 at 6:18 pm

    You’ve got 3 possibilities as far as I can see:

    • Hold the summary information in another table ONLY when you don’t
      have the individual starts
    • Hold summary information including
      summarised information for individual starts in a separate table
    • Have a special type of start record to represent summary information
      designed to generate the right results when you run a summary query
      on the whole starts table

    I think the second one is best. Just to clarify it, the idea is that you when you only have summary information you put it in the summary table, but you also put summary information generated from the individual starts you have in this table. It breaks normalisation because some of the summary information is fully dependent on existing starts records, but it will be more efficient particularly if you have to output summarised information often. It requires that you update the summarised information every time you add or change a starts record though. You’d need to make the 2 changes inside a transaction to ensure consistency.

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

Sidebar

Related Questions

I'm writing an application for android and have a fairly simple SQLite3 database (see
I'm working on a fairly simple Pylons 0.9.7 application. How do I tell, in
I was working in L2E with 3 simple tables, whose purposes a fairly straightforward:
I have a fairly simple iPhone application that I want to have run on
I am working on an fairly simple CRUD application in ASP.NET MVC. The rule
I'm working on a fairly simple survey system right now. The database schema is
I have a fairly simple Rails application that allows users to manage their clients
I am currently working on a fairly simple company intranet based on MOSS 2007
I've got a fairly simple query that I have working in command line, and
I am working on a simple intranet application made with Rails 3.1. I have

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.