{"id":36,"date":"2017-09-20T22:48:58","date_gmt":"2017-09-20T22:48:58","guid":{"rendered":"http:\/\/www.ootp.cavebutter.net\/blog\/?p=36"},"modified":"2017-09-21T13:02:44","modified_gmt":"2017-09-21T20:02:44","slug":"tables-3-the-league-history-tables","status":"publish","type":"post","link":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36","title":{"rendered":"<font color='#1e73be'>Tables 3: The League History Tables.<\/font>"},"content":{"rendered":"<p><em>Edited based on some <a href=\"http:\/\/www.ootpdevelopments.com\/board\/showpost.php?p=4235956&amp;postcount=2\">really useful tips<\/a> from the OOTP Community&#8217;s resident MySQL whisperer<\/em><\/p>\n<p>Where in Lahman, you have to build your own views for league statistics by season, OOTP does that for you. \u00a0This is nice. \u00a0I have a couple issues with the some of the columns in these tables and I will explain them as we build them. \u00a0Also, here&#8217;s where I started adding AUTO_INCREMENT ID fields to these tables. \u00a0I tried playing around with massive, composite PK&#8217;s and it wasn&#8217;t good.<\/p>\n<p><strong>Creating the league_history table<\/strong><\/p>\n<p>So, I thought this table was going to be useful when I configured the MySQL dump in-game. \u00a0Turns out, it&#8217;s not all that useful for my purposes. \u00a0It just identifies the award winners for each year in each league and sub_league. \u00a0More out of laziness than anything else, I am keeping it in the schema:<\/p>\n<pre class=\"line-numbers\"><code class=\"language-sql\">CREATE TABLE `league_history` (\r\n  `league_id` int(11) NOT NULL,\r\n  `sub_league_id` int(11) NOT NULL,\r\n  `year` int(11) NOT NULL,\r\n  `best_hitter_id` int(11) DEFAULT NULL,\r\n  `best_pitcher_id` int(11) DEFAULT NULL,\r\n  `best_rookie_id` int(11) DEFAULT NULL,\r\n  `best_manager_id` int(11) DEFAULT NULL,\r\n  `best_fielder_id0` int(11) DEFAULT NULL,\r\n  `best_fielder_id1` int(11) DEFAULT NULL,\r\n  `best_fielder_id2` int(11) DEFAULT NULL,\r\n  `best_fielder_id3` int(11) DEFAULT NULL,\r\n  `best_fielder_id4` int(11) DEFAULT NULL,\r\n  `best_fielder_id5` int(11) DEFAULT NULL,\r\n  `best_fielder_id6` int(11) DEFAULT NULL,\r\n  `best_fielder_id7` int(11) DEFAULT NULL,\r\n  `best_fielder_id8` int(11) DEFAULT NULL,\r\n  `best_fielder_id9` int(11) DEFAULT NULL,\r\n  PRIMARY KEY (`league_id`,`sub_league_id`,`year`)\r\n) ENGINE=InnoDB DEFAULT CHARSET=latin1;<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Create league_history_batting_stats table<\/strong><\/p>\n<p>There are a couple puzzles in this and the next two tables. \u00a0The columns &#8216;game_id&#8217; and &#8216;team_id&#8217; are hard to figure out. \u00a0In fact, I have not figured them out. \u00a0Their purpose, I&#8217;m sure, is to identify the sub_league. \u00a0Unfortunately, it doesn&#8217;t use a column called &#8216;sub_league&#8217;. \u00a0I haven&#8217;t been able to find any table that links either of these columns to sub_league. \u00a0So, there&#8217;s not much we can do with them. \u00a0Moreover, we&#8217;ll still have to create a view later on that sums the totals for each &#8216;team_id&#8217; and &#8216;game_id&#8217; pair. \u00a0I even posted about this on the <a href=\"http:\/\/www.ootpdevelopments.com\/board\/showthread.php?t=281389\">OOTP Boards<\/a>, but no one has chimed in yet. \u00a0<span style=\"color: #ff0000;\"><em>Wishing doesn&#8217;t make it true. \u00a0Those columns most likely do not represent usable data.<\/em><\/span><\/p>\n<p>&#8216;split_id&#8217; refers to stats accumulated against all pitchers, just righties, just lefties. \u00a0This is important at the player level. \u00a0At the league level, though, all split_id=0.<\/p>\n<p>Also, this table conveniently tracks singles, &#8216;s&#8217;, as a column. \u00a0Would be nice if it did the same at the player level to save us the calculation in some statistics, but oh well.<\/p>\n<p>Note that I added an AUTO_INCREMENT ID as PK and indexed &#8216;year&#8217;, &#8216;league_id&#8217;, and &#8216;split_id&#8217;.<\/p>\n<pre class=\"line-numbers\"><code class=\"language-sql\">CREATE TABLE `league_history_batting_stats` (\r\n  `lhbs_id` int(11) NOT NULL AUTO_INCREMENT,    \r\n  `year` smallint(6) NOT NULL,\r\n  `team_id` int(11) NOT NULL,\r\n  `game_id` int(11) DEFAULT NULL,\r\n  `league_id` int(11) NOT NULL,\r\n  `level_id` smallint(6) DEFAULT NULL,\r\n  `split_id` smallint(6) DEFAULT NULL,\r\n  `pa` int(11) DEFAULT NULL,\r\n  `ab` int(11) DEFAULT NULL,\r\n  `h` int(11) DEFAULT NULL,\r\n  `k` int(11) DEFAULT NULL,\r\n  `tb` int(11) DEFAULT NULL,\r\n  `s` int(11) DEFAULT NULL,\r\n  `d` int(11) DEFAULT NULL,\r\n  `t` int(11) DEFAULT NULL,\r\n  `hr` int(11) DEFAULT NULL,\r\n  `sb` int(11) DEFAULT NULL,\r\n  `cs` int(11) DEFAULT NULL,\r\n  `rbi` int(11) DEFAULT NULL,\r\n  `r` int(11) DEFAULT NULL,\r\n  `bb` int(11) DEFAULT NULL,\r\n  `ibb` int(11) DEFAULT NULL,\r\n  `hp` int(11) DEFAULT NULL,\r\n  `sh` int(11) DEFAULT NULL,\r\n  `sf` int(11) DEFAULT NULL,\r\n  `ci` int(11) DEFAULT NULL,\r\n  `gdp` int(11) DEFAULT NULL,\r\n  `g` int(11) DEFAULT NULL,\r\n  `gs` int(11) DEFAULT NULL,\r\n  `ebh` int(11) DEFAULT NULL,\r\n  `pitches_seen` int(11) DEFAULT NULL,\r\n  `avg` double DEFAULT NULL,\r\n  `obp` double DEFAULT NULL,\r\n  `slg` double DEFAULT NULL,\r\n  `rc` double DEFAULT NULL,\r\n  `rc27` double DEFAULT NULL,\r\n  `iso` double DEFAULT NULL,\r\n  `woba` double DEFAULT NULL,\r\n  `ops` double DEFAULT NULL,\r\n  `sbp` double DEFAULT NULL,\r\n  `ws` double DEFAULT NULL,\r\n  `kp` double DEFAULT NULL,\r\n  `bbp` double DEFAULT NULL,\r\n  `wpa` double DEFAULT NULL,\r\n  `babip` double DEFAULT NULL,\r\n  PRIMARY KEY (`lhbs_id`),\r\n  INDEX `lhbs_ix1` (`year`),\r\n  INDEX `lhbs_ix2` (`league_id`),\r\n  INDEX `lhbs_ix3` (`split_id`)    \r\n) ENGINE=InnoDB DEFAULT CHARSET=latin1;<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Create \u00a0league_history_fielding_stats table<\/strong><\/p>\n<p>Similar to the above, but for fielding stats at league level. \u00a0I haven&#8217;t yet dug into what fielding stats I will be calculating, so I don&#8217;t have all that much to say about this table.<\/p>\n<pre class=\"line-numbers\"><code class=\"language-sql\">CREATE TABLE `league_history_fielding_stats` (\r\n  `lhfs_id` int(11) NOT NULL AUTO_INCREMENT,    \r\n  `year` smallint(6) NOT NULL,\r\n  `team_id` int(11) NOT NULL,\r\n  `league_id` int(11) NOT NULL,\r\n  `sub_league_id` int(11) DEFAULT NULL,\r\n  `level_id` smallint(6) DEFAULT NULL,\r\n  `split_id` smallint(6) NOT NULL,\r\n  `position` smallint(6) DEFAULT NULL,\r\n  `g` int(11) DEFAULT NULL,\r\n  `gs` int(11) DEFAULT NULL,\r\n  `tc` int(11) DEFAULT NULL,\r\n  `a` int(11) DEFAULT NULL,\r\n  `po` int(11) DEFAULT NULL,\r\n  `e` int(11) DEFAULT NULL,\r\n  `dp` int(11) DEFAULT NULL,\r\n  `tp` int(11) DEFAULT NULL,\r\n  `pb` int(11) DEFAULT NULL,\r\n  `sba` int(11) DEFAULT NULL,\r\n  `rto` int(11) DEFAULT NULL,\r\n  `er` int(11) DEFAULT NULL,\r\n  `ip` int(11) DEFAULT NULL,\r\n  `ipf` int(11) DEFAULT NULL,\r\n  `pct` double DEFAULT NULL,\r\n  `range` double DEFAULT NULL,\r\n  `rtop` double DEFAULT NULL,\r\n  `cera` double DEFAULT NULL,\r\n  `zr` double DEFAULT NULL,\r\n  `plays` int(11) DEFAULT NULL,\r\n  `plays_base` int(11) DEFAULT NULL,\r\n  `roe` int(11) DEFAULT NULL,\r\n  `eff` int(11) DEFAULT NULL,\r\n  PRIMARY KEY (`lhfs_id`),\r\n  INDEX `lhfs_ix1` (`year`),\r\n  INDEX `lhfs_ix2` (`league_id`),\r\n  INDEX `lhfs_ix3` (`split_id`) \r\n    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Create league_history_pitching_stats table<\/strong><\/p>\n<p>This table may come in handy at some point &#8211; I haven&#8217;t done a lot of work on pitching stats yet. \u00a0But it does NOT come in handy for establishing a run environment for a league. \u00a0Why? \u00a0Because you can&#8217;t determine the number of outs! \u00a0It&#8217;s strange &#8211; as the player table has an outs column. \u00a0This table has an IP column, which would be OK if it weren&#8217;t an integer. \u00a0IP is usually tracked with a baseball-specific decimal number (x.y) where x is the number of complete innings pitched and y (0, 1, 2) \u00a0represent the outs of incomplete innings. \u00a0What are you supposed to do with only the integer? \u00a0<em><span style=\"color: #ff0000;\">Yes, well, apparently the column &#8216;ipf&#8217; \u00a0stands for Innings Pitched Fraction. \u00a0So, Outs = (3*IP) + IPF.<\/span> \u00a0<\/em><del>Anyway, I am sure I will find plenty of uses for this table in the future:<\/del><\/p>\n<pre class=\"line-numbers\"><code class=\"language-sql\">CREATE TABLE `league_history_pitching_stats` (\r\n  `lhps_id` int(11)  NOT NULL AUTO_INCREMENT,    \r\n  `year` smallint(6) NOT NULL,\r\n  `team_id` int(11) NOT NULL,\r\n  `game_id` int(11) DEFAULT NULL,\r\n  `league_id` int(11) NOT NULL,\r\n  `level_id` smallint(6) DEFAULT NULL,\r\n  `split_id` smallint(6) DEFAULT NULL,\r\n  `ab` int(11) DEFAULT NULL,\r\n  `ip` int(11) DEFAULT NULL,\r\n  `bf` int(11) DEFAULT NULL,\r\n  `tb` int(11) DEFAULT NULL,\r\n  `ha` int(11) DEFAULT NULL,\r\n  `k` int(11) DEFAULT NULL,\r\n  `rs` int(11) DEFAULT NULL,\r\n  `bb` int(11) DEFAULT NULL,\r\n  `r` int(11) DEFAULT NULL,\r\n  `er` int(11) DEFAULT NULL,\r\n  `gb` int(11) DEFAULT NULL,\r\n  `fb` int(11) DEFAULT NULL,\r\n  `pi` int(11) DEFAULT NULL,\r\n  `ipf` int(11) DEFAULT NULL,\r\n  `g` int(11) DEFAULT NULL,\r\n  `gs` int(11) DEFAULT NULL,\r\n  `w` int(11) DEFAULT NULL,\r\n  `l` int(11) DEFAULT NULL,\r\n  `s` int(11) DEFAULT NULL,\r\n  `sa` int(11) DEFAULT NULL,\r\n  `da` int(11) DEFAULT NULL,\r\n  `sh` int(11) DEFAULT NULL,\r\n  `sf` int(11) DEFAULT NULL,\r\n  `ta` int(11) DEFAULT NULL,\r\n  `hra` int(11) DEFAULT NULL,\r\n  `bk` int(11) DEFAULT NULL,\r\n  `ci` int(11) DEFAULT NULL,\r\n  `iw` int(11) DEFAULT NULL,\r\n  `wp` int(11) DEFAULT NULL,\r\n  `hp` int(11) DEFAULT NULL,\r\n  `gf` int(11) DEFAULT NULL,\r\n  `dp` int(11) DEFAULT NULL,\r\n  `qs` int(11) DEFAULT NULL,\r\n  `svo` int(11) DEFAULT NULL,\r\n  `bs` int(11) DEFAULT NULL,\r\n  `ra` int(11) DEFAULT NULL,\r\n  `ir` int(11) DEFAULT NULL,\r\n  `irs` int(11) DEFAULT NULL,\r\n  `cg` int(11) DEFAULT NULL,\r\n  `sho` int(11) DEFAULT NULL,\r\n  `sb` int(11) DEFAULT NULL,\r\n  `cs` int(11) DEFAULT NULL,\r\n  `hld` int(11) DEFAULT NULL,\r\n  `r9` double DEFAULT NULL,\r\n  `avg` double DEFAULT NULL,\r\n  `obp` double DEFAULT NULL,\r\n  `slg` double DEFAULT NULL,\r\n  `ops` double DEFAULT NULL,\r\n  `h9` double DEFAULT NULL,\r\n  `k9` double DEFAULT NULL,\r\n  `hr9` double DEFAULT NULL,\r\n  `bb9` double DEFAULT NULL,\r\n  `cgp` double DEFAULT NULL,\r\n  `fip` double DEFAULT NULL,\r\n  `qsp` double DEFAULT NULL,\r\n  `winp` double DEFAULT NULL,\r\n  `rsg` double DEFAULT NULL,\r\n  `svp` double DEFAULT NULL,\r\n  `bsvp` double DEFAULT NULL,\r\n  `irsp` double DEFAULT NULL,\r\n  `gfp` double DEFAULT NULL,\r\n  `era` double DEFAULT NULL,\r\n  `pig` double DEFAULT NULL,\r\n  `ws` double DEFAULT NULL,\r\n  `whip` double DEFAULT NULL,\r\n  `gbfbp` double DEFAULT NULL,\r\n  `kbb` double DEFAULT NULL,\r\n  `babip` double DEFAULT NULL,\r\n  `wpa` double DEFAULT NULL,\r\n  PRIMARY KEY (`lhps_id`),\r\n  INDEX `lhps_ix1` (`year`),\r\n  INDEX `lhps_ix2` (`league_id`),\r\n  INDEX `lhps_ix3` (`split_id`)     \r\n  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Edited based on some really useful tips from the OOTP Community&#8217;s resident MySQL whisperer Where in Lahman, you have to build your own views for league statistics by season, OOTP does that for you. \u00a0This is nice. \u00a0I have a couple issues with the some of the columns in these tables and I will explain&hellip; <a class=\"more-link\" href=\"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36\">Continue reading <span class=\"screen-reader-text\">Tables 3: The League History Tables.<\/span> <span class=\"meta-nav\" aria-hidden=\"true\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[10],"tags":[14,16,12,7,4,15,6,13],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-tables","tag-batting","tag-fielding","tag-league-history","tag-mysql","tag-ootp","tag-pitching","tag-tables","tag-unresolved-issue"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"cavebutter\"\/>\n\t<link rel=\"canonical\" href=\"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"MySQL MyStruggle | Rolling my own MySQL Database with OOTP\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Tables 3: The League History Tables. | MySQL MyStruggle\" \/>\n\t\t<meta property=\"og:url\" content=\"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-09-20T22:48:58+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2017-09-21T20:02:44+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Tables 3: The League History Tables. | MySQL MyStruggle\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/36#article\",\"name\":\"Tables 3: The League History Tables. | MySQL MyStruggle\",\"headline\":\"Tables 3: The League History Tables.\",\"author\":{\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/author\\\/cavebutter#author\"},\"publisher\":{\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/#organization\"},\"datePublished\":\"2017-09-20T22:48:58-07:00\",\"dateModified\":\"2017-09-21T13:02:44-07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/36#webpage\"},\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/36#webpage\"},\"articleSection\":\"Tables, batting, fielding, league history, mysql, OOTP, pitching, tables, unresolved issue\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/36#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/category\\\/tables#listItem\",\"name\":\"Tables\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/category\\\/tables#listItem\",\"position\":2,\"name\":\"Tables\",\"item\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/category\\\/tables\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/36#listItem\",\"name\":\"Tables 3: The League History Tables.\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/36#listItem\",\"position\":3,\"name\":\"Tables 3: The League History Tables.\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/category\\\/tables#listItem\",\"name\":\"Tables\"}}]},{\"@type\":\"Organization\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/#organization\",\"name\":\"MySQL MyStruggle\",\"description\":\"Rolling my own MySQL Database with OOTP\",\"url\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/author\\\/cavebutter#author\",\"url\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/author\\\/cavebutter\",\"name\":\"cavebutter\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/36#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3841893aa5a48e51f3ff3699f735196959f8b88a5ed3851eda2fed141b75cadc?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"cavebutter\"}},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/36#webpage\",\"url\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/36\",\"name\":\"Tables 3: The League History Tables. | MySQL MyStruggle\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/36#breadcrumblist\"},\"author\":{\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/author\\\/cavebutter#author\"},\"creator\":{\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/archives\\\/author\\\/cavebutter#author\"},\"datePublished\":\"2017-09-20T22:48:58-07:00\",\"dateModified\":\"2017-09-21T13:02:44-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/#website\",\"url\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/\",\"name\":\"MySQL MyStruggle\",\"description\":\"Rolling my own MySQL Database with OOTP\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"http:\\\/\\\/www.ootp.cavebutter.net\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Tables 3: The League History Tables. | MySQL MyStruggle","description":"","canonical_url":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36#article","name":"Tables 3: The League History Tables. | MySQL MyStruggle","headline":"Tables 3: The League History Tables.","author":{"@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/author\/cavebutter#author"},"publisher":{"@id":"http:\/\/www.ootp.cavebutter.net\/blog\/#organization"},"datePublished":"2017-09-20T22:48:58-07:00","dateModified":"2017-09-21T13:02:44-07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36#webpage"},"isPartOf":{"@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36#webpage"},"articleSection":"Tables, batting, fielding, league history, mysql, OOTP, pitching, tables, unresolved issue"},{"@type":"BreadcrumbList","@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"http:\/\/www.ootp.cavebutter.net\/blog#listItem","position":1,"name":"Home","item":"http:\/\/www.ootp.cavebutter.net\/blog","nextItem":{"@type":"ListItem","@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/category\/tables#listItem","name":"Tables"}},{"@type":"ListItem","@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/category\/tables#listItem","position":2,"name":"Tables","item":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/category\/tables","nextItem":{"@type":"ListItem","@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36#listItem","name":"Tables 3: The League History Tables."},"previousItem":{"@type":"ListItem","@id":"http:\/\/www.ootp.cavebutter.net\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36#listItem","position":3,"name":"Tables 3: The League History Tables.","previousItem":{"@type":"ListItem","@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/category\/tables#listItem","name":"Tables"}}]},{"@type":"Organization","@id":"http:\/\/www.ootp.cavebutter.net\/blog\/#organization","name":"MySQL MyStruggle","description":"Rolling my own MySQL Database with OOTP","url":"http:\/\/www.ootp.cavebutter.net\/blog\/"},{"@type":"Person","@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/author\/cavebutter#author","url":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/author\/cavebutter","name":"cavebutter","image":{"@type":"ImageObject","@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/3841893aa5a48e51f3ff3699f735196959f8b88a5ed3851eda2fed141b75cadc?s=96&d=mm&r=g","width":96,"height":96,"caption":"cavebutter"}},{"@type":"WebPage","@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36#webpage","url":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36","name":"Tables 3: The League History Tables. | MySQL MyStruggle","inLanguage":"en-US","isPartOf":{"@id":"http:\/\/www.ootp.cavebutter.net\/blog\/#website"},"breadcrumb":{"@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36#breadcrumblist"},"author":{"@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/author\/cavebutter#author"},"creator":{"@id":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/author\/cavebutter#author"},"datePublished":"2017-09-20T22:48:58-07:00","dateModified":"2017-09-21T13:02:44-07:00"},{"@type":"WebSite","@id":"http:\/\/www.ootp.cavebutter.net\/blog\/#website","url":"http:\/\/www.ootp.cavebutter.net\/blog\/","name":"MySQL MyStruggle","description":"Rolling my own MySQL Database with OOTP","inLanguage":"en-US","publisher":{"@id":"http:\/\/www.ootp.cavebutter.net\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"MySQL MyStruggle | Rolling my own MySQL Database with OOTP","og:type":"article","og:title":"Tables 3: The League History Tables. | MySQL MyStruggle","og:url":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36","article:published_time":"2017-09-20T22:48:58+00:00","article:modified_time":"2017-09-21T20:02:44+00:00","twitter:card":"summary","twitter:title":"Tables 3: The League History Tables. | MySQL MyStruggle"},"aioseo_meta_data":{"post_id":"36","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-02-03 03:39:37","updated":"2025-12-10 01:07:41","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"http:\/\/www.ootp.cavebutter.net\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/category\/tables\" title=\"Tables\">Tables<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<font color=\"#1e73be\">Tables 3: The League History Tables.<\/font>\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"http:\/\/www.ootp.cavebutter.net\/blog"},{"label":"Tables","link":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/category\/tables"},{"label":"<font color='#1e73be'>Tables 3: The League History Tables.<\/font>","link":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/36"}],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9cxb5-A","jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":5,"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":85,"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/posts\/36\/revisions\/85"}],"wp:attachment":[{"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}