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...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

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
2008 Update this week or early next   Message List  
Reply | Forward Message #3615 of 3880 |
I've made good progress on the BDB update for this year and should have something soon.

I'm adding an Appearances table with the following schema (this will have data from 1973 on for the AL and 1974 on for the NL).  Corresponding to complete retrosheet data for the NL and the start of the DH for the AL. 

I'm open to suggestions, but in Batting, I think I'm going to put an entry in for every player who played and then  add a column G_bat that will show how many games they appeared in the lineup, so pre-Interleague AL pitchers will have their games pitches in G and then 0 for G_bat and nulls for the values of the batting stats.

Feedback?

sean

CREATE TABLE `Appearances` (
  `yearID` smallint(4) NOT NULL default '0',
  `teamID` char(3) NOT NULL default '',
  `lgID` char(2) default NULL,
  `playerID` char(9) NOT NULL default '',
  `G_all` tinyint(3) unsigned default NULL,
  `G_batting` tinyint(3) unsigned default NULL,
  `G_defense` tinyint(3) unsigned default NULL,
  `G_p` tinyint(3) unsigned default NULL,
  `G_c` tinyint(3) unsigned default NULL,
  `G_1b` tinyint(3) unsigned default NULL,
  `G_2b` tinyint(3) unsigned default NULL,
  `G_3b` tinyint(3) unsigned default NULL,
  `G_ss` tinyint(3) unsigned default NULL,
  `G_lf` tinyint(3) unsigned default NULL,
  `G_cf` tinyint(3) unsigned default NULL,
  `G_rf` tinyint(3) unsigned default NULL,
  `G_of` tinyint(3) unsigned default NULL,
  `G_dh` tinyint(3) unsigned default NULL,
  `G_ph` tinyint(3) unsigned default NULL,
  `G_pr` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`yearID`,`teamID`,`playerID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--
Sean Forman
President, Sports Reference LLC
http://www.sports-reference.com/


Mon Nov 10, 2008 5:51 pm

sforman71
Offline Offline
Send Email Send Email

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

I've made good progress on the BDB update for this year and should have something soon. I'm adding an Appearances table with the following schema (this will...
Sean Forman
sforman71
Offline Send Email
Nov 10, 2008
5:51 pm

I think we've discussed having an appearance or roster table before, and talked about it as a very good idea.   I'm less clear about the need for the Batting...
KJOK
kjokbaseball
Offline Send Email
Nov 11, 2008
7:06 am

... I see this as backwards compatibility. I know that lost of people use the tables as is and historically G has been all games played. This will leave ...
Sean Forman
sforman71
Offline Send Email
Nov 11, 2008
12:15 pm

It is usually desirable to go vertically, than horizontally, like so: http://sports.groups.yahoo.com/group/baseball-databank/message/3606 You can create more...
tangotiger
Online Now Send Email
Nov 11, 2008
12:18 pm

You can do it that way, but SABRE prefers it to be the other way.     ... From: Tangotiger <tangotiger@...> Subject: Re: [baseball-databank] 2008...
robert bluestein
robertbluest...
Offline Send Email
Nov 11, 2008
3:50 pm

Who is "SABRE", and can you cite their reasoning? Tom ... The Book--Playing The Percentages In Baseball http://www.InsideTheBook.com...
Tangotiger
tom@...
Send Email
Nov 11, 2008
5:06 pm

Sean: That schema sounds great to me. Just a quick question - I did some research and searched the Yahoo! group and couldn't find the answer to this. There...
Matthew Gargano
tkestars
Offline Send Email
Nov 11, 2008
12:40 pm
Advanced

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