Search the web
Sign In
New User? Sign Up
baseball-databank · Baseball Databank
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
2007 records missing...   Message List  
Reply | Forward Message #3606 of 3880 |
Re: [baseball-databank] 2007 records missing...

We've longed discussed the idea of an APPEARANCES table, so that it
captures exactly what it's supposed to capture, rather than taking over
the BATTING table just because the official rules say to use it. (DBAs
follow the data, not the legal definitions of names.)

The APPEARANCES table would give us the total number of games played,
games started, games finished, and potentially further broken down by
fielding position and lineup position. So, you could have:

playerID, appearCode, appearSubcode, GS, GP, GF
raineti01, 0, 0, 141, 147, 142
raineti01, fld, 7, 141, 141, 140
raineti01, fld, 8, 0, 8, 2
raineti01, bat, 1, 140, 140, 139
raineti01, bat, 3, 1, 1, 1
raineti01, bat, 7, 0, 6, 2

Something like that. So, for your purposes, you would select on
appearCode = 0.

Or, if that's too complicated, we'd have an APPEARANCES table like this:
playerID, GS, GP, GF
raineti01, 141, 147, 142

And an APPEARANCES_SPLIT table like this:
playerID, appearCode, appearSubcode, GS, GP, GF
raineti01, fld, 7, 141, 141, 140
raineti01, fld, 8, 0, 8, 2
raineti01, bat, 1, 140, 140, 139
raineti01, bat, 3, 1, 1, 1
raineti01, bat, 7, 0, 6, 2

Regardless, I do not have an answer for your original question.

Tom




Tue Oct 7, 2008 8:26 pm

tom@...
Send Email Send Email

Forward
Message #3606 of 3880 |
Expand Messages Author Sort by Date

Hey guys...I don't know if anyone else noticed this since it's not a huge deal 99% of the time, but for some reason in the 2007 season (most recent in the...
hackersdienow
Offline Send Email
Oct 7, 2008
7:34 pm

We've longed discussed the idea of an APPEARANCES table, so that it captures exactly what it's supposed to capture, rather than taking over the BATTING table...
Tangotiger
tom@...
Send Email
Oct 7, 2008
8:28 pm

That's the way I would approach it as well if I were the guy doing the building of the DB...I highly recommend Lahman/Forman work toward that goal. It sounds...
hackersdienow
Offline Send Email
Oct 8, 2008
1:32 pm

... There are no current plans, that's correct. How/when this will be rectified is undetermined. Tom ... The Book--Playing The Percentages In Baseball ...
Tangotiger
tom@...
Send Email
Oct 8, 2008
1:59 pm

OK...thanks Tom. I'm going to ask our web coder to McGuyver an appearances table...that's the correct way to normalize the database anyway....
hackersdienow
Offline Send Email
Oct 9, 2008
12:27 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help