Home | Webstore
Latest News: OOTP 13 THIRD Update Available: Version 13.3.9! - OOTP 13 Released! Download Now! - iOOTP 2012 Available NOW on the AppStore - Title Bout Championship Boxing 2.5 released!

Download OOTP 13 Now! | Download iOOTP 2012 from the AppStore

Go Back   OOTP Developments Forums > Out of the Park Baseball 13 > OOTP Mods > OOTP Mods - Database Tools

OOTP Mods - Database Tools Do you need to take a dump? SQL gurus welcome

Reply
 
LinkBack Thread Tools Display Modes
Old 01-05-2012, 09:54 AM   #1 (permalink)
Global Moderator
 
ctorg's Avatar
 
Join Date: Nov 2002
Location: Brooklyn, NY
Posts: 9,701
Thanks: 38
Thanked 91x in 51 posts
players_at_bat_batting_stats help?

I'm trying to make myself a little Access database that will help me look at some splits for players. In order to do so, I need to get a better handle on what the fields represent in the players. Can anyone who knows help me with some of these questions?

  1. result - seems to be coded on a 1-9 scale, but I don't know what each number means. I assume each stands for an outcome (e.g., homerun, strikeout, etc.).
  2. sb/cs - do these fields show whether the batter stole/was caught when he got on base, or do they show what runners on base did while the batter was up?
  3. r - similarly, does this show whether the batter scored after reaching or whether someone scored during his ab?
Any info would be greatly appreciated.
__________________
THE VERY US ARTISTS - A project for musicians and visual artists

My music


Currently reading:
Thirteen by Richard Morgan


"When the trees blow back and forth, that's what makes the wind." - Steven Wright

Fjord emena pancreas thorax fornicate marmalade morpheme proteolysis smaxa cabana offal srue vitriol grope hallelujah lentils
ctorg is offline   Reply With Quote
Old 01-05-2012, 11:28 AM   #2 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,749
Thanks: 15
Thanked 275x in 125 posts
Quote:
Originally Posted by ctorg View Post
1. result - seems to be coded on a 1-9 scale, but I don't know what each number means. I assume each stands for an outcome (e.g., homerun, strikeout, etc.).
1 - strikeout
2 - walk
3 - ??? - I've never seen this set. It may be intended for reaching on error, but errors are actually recorded as the type of out they would have generated (e.g. an error on a ground ball is marked with result=4)
4 - ground out
5 - fly out
6 - single
7 - double
8 - triple
9 - home run
10 - hit by pitch
11 - reaches on catcher's interference

Quote:
Originally Posted by ctorg View Post
2. sb/cs - do these fields show whether the batter stole/was caught when he got on base, or do they show what runners on base did while the batter was up?
The sb column means the player eventually stole a base
The cs column means the player eventually was caught stealing

Quote:
Originally Posted by ctorg View Post
3. r - similarly, does this show whether the batter scored after reaching or whether someone scored during his ab?
The r column means the player eventually came around to score

So the answer to the last two questions is that it relates to the batter himself after he becomes a baserunner. It is not what other players are doing during his PA.

Also, note that the balls and strikes columns reflect the count when the pitch was thrown that determined the plate appearance. So, for example, a player who walks (result=2) will show 3 in the balls column, not 4.
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers

Last edited by fhomess; 01-05-2012 at 11:37 AM.
fhomess is offline   Reply With Quote
Thank you for this post:
ctorg (01-05-2012)
Old 01-05-2012, 12:12 PM   #3 (permalink)
Global Moderator
 
ctorg's Avatar
 
Join Date: Nov 2002
Location: Brooklyn, NY
Posts: 9,701
Thanks: 38
Thanked 91x in 51 posts
Thank you fhomess! This helps very much!
__________________
THE VERY US ARTISTS - A project for musicians and visual artists

My music


Currently reading:
Thirteen by Richard Morgan


"When the trees blow back and forth, that's what makes the wind." - Steven Wright

Fjord emena pancreas thorax fornicate marmalade morpheme proteolysis smaxa cabana offal srue vitriol grope hallelujah lentils
ctorg is offline   Reply With Quote
Reply

Bookmarks

Tags
database, fields, result

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:38 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0
Copyright © 2009 Out of the Park Developments