<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Baseball baseball baseball - Medium]]></title>
        <description><![CDATA[An assortment of baseball content. - Medium]]></description>
        <link>https://medium.com/baseball-baseball-baseball?source=rss----7e243594c21e---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Baseball baseball baseball - Medium</title>
            <link>https://medium.com/baseball-baseball-baseball?source=rss----7e243594c21e---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:59:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/baseball-baseball-baseball" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[937 — Immaculate Grid/SQL]]></title>
            <link>https://medium.com/baseball-baseball-baseball/937-immaculate-grid-sql-e721d4cc4dba?source=rss----7e243594c21e---4</link>
            <guid isPermaLink="false">https://medium.com/p/e721d4cc4dba</guid>
            <dc:creator><![CDATA[Peter Simon]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 13:25:44 GMT</pubDate>
            <atom:updated>2026-01-20T13:25:44.410Z</atom:updated>
            <content:encoded><![CDATA[<h3>937 — Immaculate Grid/SQL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*nV60krHkxD5yPO2vPVKbWQ.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><p>I’m back. I have no good reason why I was gone but I’m back. Didn’t have to shake too many cobwebs but it always feels weird opening up an application or program you haven’t used in some time. This article could probably actually be written to address the need to do something every day, no matter how small, just to keep your momentum going. But maybe we’ll do that another day.</p><p>Pretty standard queries here. I guess looking back on the queries, I think next time I would like to run queries that count Gold Gloves won for players and order on that as opposed to whatever the other category is. Also, I only did 6 queries because the final 3 categories included WAR and that’s a little more of a difficult task to gather that information. Including using R and connecting databases. But I think you could also use the Lahman package in R to complete this task but that may also be a project for another day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*Ju4hVx4rCD9Ywi1vSbrU9A.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><pre>--- Create GG temp table for all players who have won a Gold Glove award<br>SELECT DISTINCT(a.playerID), p.nameFirst, p.nameLast, a.awardID<br>INTO #GG<br>FROM dbo.AwardsPlayers AS a<br>INNER JOIN dbo.People AS p<br> ON a.playerID = p.playerID<br>WHERE a.awardID = &#39;Gold Glove&#39;;<br><br><br>--- Create temp table for all players who have played 2B<br>SELECT DISTINCT(playerID), POS, SUM(G) AS x2BG<br>INTO #x2B<br>FROM dbo.Fielding<br>WHERE POS = &#39;2B&#39;<br>GROUP BY playerID, POS;<br><br><br>--- Query all players who have won an MVP award &amp; played 2B<br>SELECT #GG.playerID, #GG.nameFirst, #GG.nameLast, #x2B.x2BG<br>FROM #GG<br>INNER JOIN #x2B<br> ON #GG.playerID = #x2B.playerID<br>ORDER BY #x2B.x2BG ASC;</pre><p>The rest of the code can be found on my GitHub. Comment or reach out with anything. Links below.</p><p>GitHub: <a href="https://github.com/petereugenesimon">https://github.com/petereugenesimon</a><br>LinkedIn: <a href="https://www.linkedin.com/in/peteresimonund/">https://www.linkedin.com/in/peteresimonund/</a><br>Twitter: <a href="https://x.com/beisbolx3">https://x.com/beisbolx3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e721d4cc4dba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/baseball-baseball-baseball/937-immaculate-grid-sql-e721d4cc4dba">937 — Immaculate Grid/SQL</a> was originally published in <a href="https://medium.com/baseball-baseball-baseball">Baseball baseball baseball</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10/24/25 — Immaculate Grid/SQL]]></title>
            <link>https://medium.com/baseball-baseball-baseball/10-24-25-immaculate-grid-sql-d3a339fd1e0d?source=rss----7e243594c21e---4</link>
            <guid isPermaLink="false">https://medium.com/p/d3a339fd1e0d</guid>
            <dc:creator><![CDATA[Peter Simon]]></dc:creator>
            <pubDate>Mon, 22 Dec 2025 02:24:08 GMT</pubDate>
            <atom:updated>2025-12-22T02:24:08.616Z</atom:updated>
            <content:encoded><![CDATA[<h3>10/24/25 — Immaculate Grid/SQL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*nV60krHkxD5yPO2vPVKbWQ.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><p>I finally got around to adding a “games played” column to my queries. This makes it tremendously easier to figure out who is probably the least guessed player. Previously, I had just been going by alphabetical order or whatever name was funniest (shoutout Dolph Camilli). Now this feels a little more scientific, but not by much. I also wouldn’t put past the Immaculate Grid community to have distinct memories of players who only played one game for a given criteria. Christian Vazquez is my bastion on that matter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*w7EcR6pfJGSJHKeVBXNJlg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*_oadgKxXENBBotmIi0zdfg.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><pre>-- LAHMAN DB DOES NOT CONTAIN ANY 2025 RECORDS<br><br><br>-- Query franchise &amp; team IDs<br>SELECT DISTINCT(franchID), name, teamID<br>FROM dbo.Teams;<br><br><br>-- Query all players who played at least 1 game in RF for TOR<br>SELECT f.playerID, p.nameFirst, p.nameLast, SUM(f.G) AS G<br>FROM dbo.FieldingOFsplit AS f<br>INNER JOIN dbo.People AS p<br> ON f.playerID = p.playerID<br>WHERE f.teamID = &#39;TOR&#39; AND<br> f.POS = &#39;RF&#39;<br>GROUP BY f.playerID, p.nameFirst, p.nameLast<br>ORDER BY SUM(f.G);</pre><p>Thank you as always for the read. The remainder of the code can be found on my GitHub. Please comment or reach out for anything. Links below.</p><p>GitHub: <a href="https://github.com/petereugenesimon">https://github.com/petereugenesimon</a><br>LinkedIn: <a href="https://www.linkedin.com/in/peteresimonund/">https://www.linkedin.com/in/peteresimonund/</a><br>Twitter: <a href="https://x.com/beisbolx3">https://x.com/beisbolx3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3a339fd1e0d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/baseball-baseball-baseball/10-24-25-immaculate-grid-sql-d3a339fd1e0d">10/24/25 — Immaculate Grid/SQL</a> was originally published in <a href="https://medium.com/baseball-baseball-baseball">Baseball baseball baseball</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10/23/25 Immaculate Grid/SQL]]></title>
            <link>https://medium.com/baseball-baseball-baseball/10-23-25-immaculate-grid-sql-e60c635f6208?source=rss----7e243594c21e---4</link>
            <guid isPermaLink="false">https://medium.com/p/e60c635f6208</guid>
            <dc:creator><![CDATA[Peter Simon]]></dc:creator>
            <pubDate>Fri, 28 Nov 2025 16:20:41 GMT</pubDate>
            <atom:updated>2025-11-28T16:20:40.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*nV60krHkxD5yPO2vPVKbWQ.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><p>I, once again, committed an error. What was I to expect, though, after trying to use my brain after eating Thanksgiving dinner… I should’ve been looking for center fielders who played for the Chicago White Sox. My turkey brain had me thinking I was looking for catchers who played for the Chicago White Sox. Once again, don’t read too fast.</p><p>104, though. I would’ve had to have a great pull if I wanted to get that #1 spot. Can never get complacent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*pEVsA7FZyZR8gD8bYitfhg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*t1FGcIM8i7XFHe1Oe5Pxkg.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><pre>-- Create a temp table for every Silver Slugger who played CF at least once<br>SELECT a.playerID, a.awardID, a.yearID, f.POS<br>INTO #ss_cf<br>FROM dbo.AwardsPlayers AS a<br>INNER JOIN dbo.FieldingOFsplit AS f<br> ON a.playerID = f.playerID<br>WHERE a.awardID = &#39;Silver Slugger&#39; AND<br> f.POS = &#39;CF&#39;;<br><br><br>-- Query every player who won a Silver Slugger &amp; played CF at least once<br>SELECT DISTINCT(sscf.playerID), p.nameFirst, p.nameLast<br>FROM dbo.People AS p<br>INNER JOIN #ss_cf AS sscf<br> ON p.playerID = sscf.playerID;</pre><p>Thanks for the read. I hope everyone had a great Thanksigiving and didn’t commit any errors like myself. Full code can be found on GitHub. Links below.</p><p>GitHub: <a href="https://github.com/petereugenesimon">https://github.com/petereugenesimon</a><br>LinkedIn: <a href="https://www.linkedin.com/in/peteresimonund/">https://www.linkedin.com/in/peteresimonund/</a><br>Twitter: <a href="https://x.com/beisbolx3">https://x.com/beisbolx3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e60c635f6208" width="1" height="1" alt=""><hr><p><a href="https://medium.com/baseball-baseball-baseball/10-23-25-immaculate-grid-sql-e60c635f6208">10/23/25 Immaculate Grid/SQL</a> was originally published in <a href="https://medium.com/baseball-baseball-baseball">Baseball baseball baseball</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10/22/25 — Immaculate Grid/SQL]]></title>
            <link>https://medium.com/baseball-baseball-baseball/10-22-25-immaculate-grid-sql-dc813dcb4b19?source=rss----7e243594c21e---4</link>
            <guid isPermaLink="false">https://medium.com/p/dc813dcb4b19</guid>
            <dc:creator><![CDATA[Peter Simon]]></dc:creator>
            <pubDate>Tue, 18 Nov 2025 16:42:34 GMT</pubDate>
            <atom:updated>2025-11-18T16:42:34.121Z</atom:updated>
            <content:encoded><![CDATA[<h3>10/22/25 — Immaculate Grid/SQL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*nV60krHkxD5yPO2vPVKbWQ.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><p>I committed an error on this one. One thing they tell you to do when you’re taking the CPA exam is to read each question slowly and not speed through it as you may miss something. Well, this young man did just that. Instead of querying all the players who had a 30+ home run season with the New York Mets franchise, I queried Los Angeles Dodgers franchise players who did that. So my guess of Young Dolph Camilli was correct, just not for this question…</p><p>If it weren’t for that error, my score of 101 would be 1. IG automatically adds 100 to your Rarity Score for every square you miss, for those new to the program.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*gtIM7_oNbR96wr85iPLqjw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*IYbIZpCikHLv3-w2Z8Albw.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><pre>-- Query list of unique birthCountries<br>SELECT DISTINCT(birthCountry)<br>FROM dbo.People<br>ORDER BY birthCountry;<br><br><br>-- Create temp table of all players not born in the US or NOT NULL<br>SELECT DISTINCT(playerID), nameFirst, nameLast, birthCountry<br>INTO #not_us<br>FROM dbo.People<br>WHERE birthCountry != &#39;USA&#39; AND<br> birthCountry IS NOT NULL;<br><br><br>-- Create temp for all players who hit 30+ HR in a season<br>SELECT DISTINCT(playerID)<br>INTO #30hr<br>FROM dbo.Batting<br>WHERE HR &gt;= 30;<br><br><br>-- Query all players born outside the US who hit 30+ HR in a season<br>SELECT x30hr.playerID, not_us.nameFirst, not_us.nameLast<br>FROM #not_us AS not_us<br>INNER JOIN #30hr AS x30hr<br> ON not_us.playerID = x30hr.playerID</pre><p>Thank you for the read. Full code can be found on GitHub. Comment or reach out for/with anything. Links below.</p><p>GitHub: <a href="https://github.com/petereugenesimon">https://github.com/petereugenesimon</a><br>LinkedIn: <a href="https://www.linkedin.com/in/peteresimonund/">https://www.linkedin.com/in/peteresimonund/</a><br>Twitter: <a href="https://x.com/beisbolx3">https://x.com/beisbolx3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc813dcb4b19" width="1" height="1" alt=""><hr><p><a href="https://medium.com/baseball-baseball-baseball/10-22-25-immaculate-grid-sql-dc813dcb4b19">10/22/25 — Immaculate Grid/SQL</a> was originally published in <a href="https://medium.com/baseball-baseball-baseball">Baseball baseball baseball</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[9/29/25 — Immaculate Grid/SQL]]></title>
            <link>https://medium.com/baseball-baseball-baseball/9-29-25-immaculate-grid-sql-c0da9994c191?source=rss----7e243594c21e---4</link>
            <guid isPermaLink="false">https://medium.com/p/c0da9994c191</guid>
            <dc:creator><![CDATA[Peter Simon]]></dc:creator>
            <pubDate>Wed, 05 Nov 2025 13:00:38 GMT</pubDate>
            <atom:updated>2025-11-05T13:00:38.109Z</atom:updated>
            <content:encoded><![CDATA[<h3>9/29/25 — Immaculate Grid/SQL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*nV60krHkxD5yPO2vPVKbWQ.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><p>Tip of the cap to the six souls that dialed up a better Grid for this date. I didn’t think doing my close, personal friend Harry Bader a favor and throwing him a bone would cost me so dearly. I’m guessing Leon Durham had a couple buddies pulling strings too. Shoutout Merle Adkins, what a unit. 5&#39; 10&quot;, 220lbs. Must’ve been the mechanics keeping him from putting all he had behind the ball.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*uTXrs5kK7nJDIL1lwRDW4w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*NSevXca4HeZsgApIoghjEg.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><pre>-- LAHMAN DB DOES NOT CONTAIN ANY 2025 RECORDS<br><br><br>-- Query franchise &amp; team IDs<br>SELECT DISTINCT(tf.franchID), tf.franchName, t.teamID, t.name<br>FROM dbo.TeamsFranchises AS tf<br>INNER JOIN dbo.Teams AS t<br> ON tf.franchID = t.franchID;<br><br><br>-- Create a temp table for every Silver Slugger<br>SELECT DISTINCT(playerID), awardID, yearID<br>INTO #ss<br>FROM dbo.AwardsPlayers<br>WHERE awardID = &#39;Silver Slugger&#39;;<br><br><br>-- Create temp table for all players with batting records for CHC franchise<br>SELECT bt.playerID, p.nameFirst, p.nameLast, bt.yearID<br>INTO #chc_bat<br>FROM dbo.Batting AS bt<br>INNER JOIN dbo.People AS p<br> ON bt.playerID = p.playerID<br>WHERE bt.teamID = &#39;CHN&#39;;<br><br><br>-- Create temp table for all players with pitching records for CHC franchise<br>SELECT pt.playerID, p.nameFirst, p.nameLast, pt.yearID<br>INTO #chc_pit<br>FROM dbo.Pitching AS pt<br>INNER JOIN dbo.People AS p<br> ON pt.playerID = p.playerID<br>WHERE pt.teamID = &#39;CHN&#39;;<br><br><br>-- Create temp table joining every recorded player for CHC franchise<br>SELECT *<br>INTO #chc<br>FROM #chc_bat<br>UNION<br>SELECT *<br>FROM #chc_pit;<br><br><br>-- Query every player who won a Silver Slugger with CHC franchise<br>SELECT chc.playerID, chc.nameFirst, chc.nameLast, chc.yearID, ss.awardID<br>FROM #ss AS ss<br>INNER JOIN #chc_bat AS chc<br> ON ss.playerID = chc.playerID AND<br> ss.yearID = chc.yearID;</pre><p>Thanks for the read. Full code can be found on GitHub. Comment or reach out with anything. Links below.</p><p>GitHub: <a href="https://github.com/petereugenesimon">https://github.com/petereugenesimon</a><br>LinkedIn: <a href="https://www.linkedin.com/in/peteresimonund/">https://www.linkedin.com/in/peteresimonund/</a><br>Twitter: <a href="https://x.com/beisbolx3">https://x.com/beisbolx3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0da9994c191" width="1" height="1" alt=""><hr><p><a href="https://medium.com/baseball-baseball-baseball/9-29-25-immaculate-grid-sql-c0da9994c191">9/29/25 — Immaculate Grid/SQL</a> was originally published in <a href="https://medium.com/baseball-baseball-baseball">Baseball baseball baseball</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[9/30/25 — Immaculate Grid/SQL]]></title>
            <link>https://medium.com/baseball-baseball-baseball/9-30-25-immaculate-grid-sql-2f5f2d31fb30?source=rss----7e243594c21e---4</link>
            <guid isPermaLink="false">https://medium.com/p/2f5f2d31fb30</guid>
            <dc:creator><![CDATA[Peter Simon]]></dc:creator>
            <pubDate>Fri, 31 Oct 2025 01:56:21 GMT</pubDate>
            <atom:updated>2025-10-31T01:56:21.266Z</atom:updated>
            <content:encoded><![CDATA[<h3>9/30/25 — Immaculate Grid/SQL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*nV60krHkxD5yPO2vPVKbWQ.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*TGVJACQj1XSrnMtWgPLspw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*PSRBHsyse9hnP1-BfVX6UA.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><p>102… I’m not talking about Mason Miller’s fastball. I fell short of the mark today due to a *jokingly* data quality issue. For the LAD &amp; WSN franchise, I chose none other than Bert Abbey because that was the first name that the machine gave me. Well, turns out the 1892 Washington Senators are not part of the current Washington Nationals franchise. Anyone with half a brain could tell you that…</p><p>The issue lies in the teamID field. In the snippet below you’ll see at the top of the code there is a query for selecting franchise &amp; teamIDs. That query produces a nice table of franchiseID &amp; franchName and the corresponding teamID &amp; name. This is the first time I’ve really run into an issue with the franchises &amp; teams related to “Washington.” I think for the most part people will know that there are two Washington Senators predecessors who now fall under the Minnesota &amp; Texas umbrellas. See below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*Vpxv2ClpwO3ew_eEA4IsyA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*8oSkfFvx3_-ZyrHS94ksyw.png" /></figure><p>Now, what I just found out is that it gets a little funky down at the bottom with the <em>franchises </em>that start with “Washington.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*eeyOeNZ83GLsyHnJKlrAOA.png" /></figure><p>How I, and how I assume most people, think of the Washington Nationals franchise is the absorption of the Montreal Expos (RIP) and the current day Washington Nationals. That can be seen on lines 183 &amp; 184 with the WSN franchID and the MON &amp; WAS teamIDs. You can see in my queries that I typically use teamID when matching up players &amp; teams. I usually make a temp table for a franchise using IN (‘x’, ‘y’, ‘z’) for cases like this where a franchise contains former and current teams (or teamID variations i.e. the Anaheim California Los Angeles Angels of Anaheim). But you can see where this method “hurt” me for this particular instance.</p><p>From the few Grids I’ve completed using SQL, this appears to be the first time where a teamID is used for two different franchises. Bert Abbey’s information is correct in that he does have statistics for a team with the teamID “WAS.” It just happens to be the “WAS” for the Washington Senators franchise and not the “WAS” for the Washington Nationals franchise. This seems like a really fun history lesson to dive into because I still don’t totally understand the franchise history of any team starting with “Washington” (except for the Blue Legs). [insert Wayne’s World quote here] Anyways, code snippet for LAD &amp; WSN below. The rest can be found on GitHub.</p><pre>-- LAHMAN DB DOES NOT CONTAIN ANY 2025 RECORDS<br><br><br>-- Query franchise &amp; team IDs<br>SELECT DISTINCT(tf.franchID), tf.franchName, t.teamID, t.name<br>FROM dbo.TeamsFranchises AS tf<br>INNER JOIN dbo.Teams AS t<br> ON tf.franchID = t.franchID;<br><br><br>-- Create temp table for all players with batting records for LAD franchise<br>SELECT DISTINCT(bt.playerID), p.nameFirst, p.nameLast<br>INTO #lad_bat<br>FROM dbo.Batting AS bt<br>INNER JOIN dbo.People AS p<br> ON bt.playerID = p.playerID<br>WHERE bt.teamID IN (&#39;BR3&#39;, &#39;BRO&#39;, &#39;LAN&#39;);<br><br><br>-- Create temp table for all players with pitching records for LAD franchise<br>SELECT DISTINCT(pt.playerID), p.nameFirst, p.nameLast<br>INTO #lad_pit<br>FROM dbo.Pitching AS pt<br>INNER JOIN dbo.People AS p<br> ON pt.playerID = p.playerID<br>WHERE pt.teamID IN (&#39;BR3&#39;, &#39;BRO&#39;, &#39;LAN&#39;);<br><br><br>-- Create temp table joining every recorded player for LAD franchise<br>SELECT *<br>INTO #lad<br>FROM #lad_bat<br>UNION<br>SELECT *<br>FROM #lad_pit;<br><br><br>-- Create temp table for all players with batting records for WSN franchise<br>SELECT DISTINCT(bt.playerID), p.nameFirst, p.nameLast<br>INTO #wsn_bat<br>FROM dbo.Batting AS bt<br>INNER JOIN dbo.People AS p<br> ON bt.playerID = p.playerID<br>WHERE bt.teamID IN (&#39;MON&#39;, &#39;WAS&#39;);<br><br><br>-- Create temp table for all players with pitching records for WSN franchise<br>SELECT DISTINCT(pt.playerID), p.nameFirst, p.nameLast<br>INTO #wsn_pit<br>FROM dbo.Pitching AS pt<br>INNER JOIN dbo.People AS p<br> ON pt.playerID = p.playerID<br>WHERE pt.teamID IN (&#39;MON&#39;, &#39;WAS&#39;);<br><br><br>-- Create temp table joining every recorded player for WSN franchise<br>SELECT *<br>INTO #wsn<br>FROM #wsn_bat<br>UNION<br>SELECT *<br>FROM #wsn_pit;<br><br><br>-- Query all players who played for LAD &amp; WSN franchises<br>SELECT DISTINCT(lad.playerID), lad.nameFirst, lad.nameLast<br>FROM #lad AS lad<br>INNER JOIN #wsn AS wsn<br> ON lad.playerID = wsn.playerID;</pre><p>Thank you as always for the read. Comment or reach out for anything. Links below.</p><p>GitHub: <a href="https://github.com/petereugenesimon">https://github.com/petereugenesimon</a><br>LinkedIn: <a href="https://www.linkedin.com/in/peteresimonund/">https://www.linkedin.com/in/peteresimonund/</a><br>Twitter: <a href="https://x.com/beisbolx3">https://x.com/beisbolx3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f5f2d31fb30" width="1" height="1" alt=""><hr><p><a href="https://medium.com/baseball-baseball-baseball/9-30-25-immaculate-grid-sql-2f5f2d31fb30">9/30/25 — Immaculate Grid/SQL</a> was originally published in <a href="https://medium.com/baseball-baseball-baseball">Baseball baseball baseball</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10/1/25 — Immaculate Grid/SQL]]></title>
            <link>https://medium.com/baseball-baseball-baseball/10-1-25-immaculate-grid-sql-e19e56ac9802?source=rss----7e243594c21e---4</link>
            <guid isPermaLink="false">https://medium.com/p/e19e56ac9802</guid>
            <dc:creator><![CDATA[Peter Simon]]></dc:creator>
            <pubDate>Sun, 26 Oct 2025 20:29:09 GMT</pubDate>
            <atom:updated>2025-10-26T20:29:09.619Z</atom:updated>
            <content:encoded><![CDATA[<h3>10/1/25 — Immaculate Grid/SQL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*nV60krHkxD5yPO2vPVKbWQ.jpeg" /><figcaption>From ImmacualteGrid.com</figcaption></figure><p>I couldn’t summit the mountain today and landed at #2 on Rarity Score. Shoutout to whoever was the leader in the clubhouse. I hope they earned that from memory alone.</p><p>Below is my score and the players. Can’t help but put the blame on Andy Etchebarren for this one. A quick aside here to put a spotlight on the guy. Andy Etchebarren was a two-time All-Star in 1966 &amp; 1967. Both of those years, Etchebarren finished with an OPS+ of 89 and 83, respectively. It would be interesting to look into him a little more because for whatever reason he played All-Star-caliber baseball in the first half of the season and then did the opposite in the second half. In ’66, he posted a 121 sOPS+ over 79 games in the first half and then a 30 sOPS+ over 42 games in the second half. In ’67, he posted a 115 sOPS+ over 63 games in the first half and then a 44 sOPS+ over 49 games in the second half. Based off of the game totals, I’m guessing injuries played a factor in his second half performances. Especially being a catcher, I’m sure he got worn down as the season went on. Anyways, back to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*iDriYCt2p869P5DIACaQfw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*VUOiB68CMen6s_otXzUqWg.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><p>Below is the code snippet for the ≤ 3.00 ERA Season/Minnesota square.</p><pre>-- LAHMAN DB DOES NOT CONTAIN ANY 2025 RECORDS<br><br><br>-- Query franchise &amp; team IDs<br>SELECT DISTINCT(tf.franchID), tf.franchName, t.teamID, t.name<br>FROM dbo.TeamsFranchises AS tf<br>INNER JOIN dbo.Teams AS t<br> ON tf.franchID = t.franchID;<br><br><br>-- Query every player who recorded an ERA &lt; 3.01 in a season for the MIN franchise<br>SELECT pit.playerID, play.nameFirst, play.nameLast, pit.yearID, pit.teamID, pit.ERA<br>FROM dbo.Pitching AS pit<br>INNER JOIN dbo.People AS play<br> ON pit.playerID = play.playerID<br>WHERE teamID IN (&#39;MIN&#39;, &#39;WS1&#39;) AND<br> ERA &lt; 3.01;</pre><p>Thanks for the read. Reach out or comment for whatever. Links below.</p><p>GitHub: <a href="https://github.com/petereugenesimon">https://github.com/petereugenesimon</a><br>LinkedIn: <a href="https://www.linkedin.com/in/peteresimonund/">https://www.linkedin.com/in/peteresimonund/</a><br>Twitter: <a href="https://x.com/beisbolx3">https://x.com/beisbolx3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e19e56ac9802" width="1" height="1" alt=""><hr><p><a href="https://medium.com/baseball-baseball-baseball/10-1-25-immaculate-grid-sql-e19e56ac9802">10/1/25 — Immaculate Grid/SQL</a> was originally published in <a href="https://medium.com/baseball-baseball-baseball">Baseball baseball baseball</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[9/15/25 — Immaculate Grid/SQL]]></title>
            <link>https://medium.com/baseball-baseball-baseball/9-15-25-immaculate-grid-sql-bd69510515ef?source=rss----7e243594c21e---4</link>
            <guid isPermaLink="false">https://medium.com/p/bd69510515ef</guid>
            <dc:creator><![CDATA[Peter Simon]]></dc:creator>
            <pubDate>Thu, 23 Oct 2025 15:50:10 GMT</pubDate>
            <atom:updated>2025-10-26T20:03:05.968Z</atom:updated>
            <content:encoded><![CDATA[<h3>10/3/25 — Immaculate Grid/SQL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*nV60krHkxD5yPO2vPVKbWQ.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><p>Mission accomplished again. This one was a little trickier, though, as I had to SUM career hits as one of the criteria was +2,000 hits. The code snippet I’ll post below was for the played catcher &amp; amassed +2,000 hits. For some reason, the first part where I created a temp table that joined the People table &amp; Batting table and did some math took a little time. If someone knows why/how I could execute that more efficiently, please let me know.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*OO5cExj-F371Uv1do0kEhQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*UUPoA2dKMdwJs3TX86hFOg.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><pre>-- Create a temp table for every player who recorded +2,000 hits<br>SELECT b.playerID, p.nameFirst, p.nameLast, SUM(b.H) AS H<br>INTO #twogh<br>FROM dbo.Batting AS b<br>INNER JOIN dbo.People AS p<br> ON b.playerID = p.playerID<br>GROUP BY b.playerID, p.nameFirst, p.nameLast<br>HAVING SUM(H) &gt; 1999<br>ORDER BY H DESC;<br><br><br>-- Create temp table for every player who played C<br>SELECT DISTINCT(playerID), POS<br>INTO #catch<br>FROM dbo.Fielding<br>WHERE POS = &#39;C&#39;;<br><br><br>-- Query every player who played C &amp; recorded +2,000 hits<br>SELECT DISTINCT(twogh.playerID), twogh.nameFirst, twogh.nameLast<br>FROM #twogh AS twogh<br>INNER JOIN #catch AS c<br> ON twogh.playerID = c.playerID;</pre><p>Thank you as always for the read. Other queries can be found below, along with other things. Reach out for any and all items of business.</p><p>GitHub: <a href="https://github.com/petereugenesimon">https://github.com/petereugenesimon</a><br>LinkedIn: <a href="https://www.linkedin.com/in/peteresimonund/">https://www.linkedin.com/in/peteresimonund/</a><br>Twitter: <a href="https://x.com/beisbolx3">https://x.com/beisbolx3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd69510515ef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/baseball-baseball-baseball/9-15-25-immaculate-grid-sql-bd69510515ef">9/15/25 — Immaculate Grid/SQL</a> was originally published in <a href="https://medium.com/baseball-baseball-baseball">Baseball baseball baseball</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10/15/25 — Immaculate Grid/SQL]]></title>
            <link>https://medium.com/baseball-baseball-baseball/10-15-25-immaculate-grid-sql-dbd081870cb4?source=rss----7e243594c21e---4</link>
            <guid isPermaLink="false">https://medium.com/p/dbd081870cb4</guid>
            <dc:creator><![CDATA[Peter Simon]]></dc:creator>
            <pubDate>Thu, 23 Oct 2025 15:38:31 GMT</pubDate>
            <atom:updated>2025-10-23T15:38:23.199Z</atom:updated>
            <content:encoded><![CDATA[<h3>10/15/25 — Immaculate Grid/SQL</h3><p>I only worked on queries for the first two columns today because I’m going to need to some extra time to work on calculations within SQL for AVG.</p><p>The code snippet I’m including today is for players who won Gold Gloves while playing with NYY. I worded it that way because on my first attempts, the query was returning players who had won GGs AND played for NYY. Meaning I was getting players who had won GGs and played for NYY but didn’t necessarily win GGs with NYY.</p><p>I again noticed that there are some discrepancies between what Baseball Reference returns and what my queries return. Not to sound arrogant, but I think the fault for some of the discrepancies I have been finding fall on BR. There was one player today, Cesar Geronimo, that BR had as having won a GG and having played 1B. But upon inspection, he had won GGs (4) but he was an outfielder who never played any other position (besides DH). My query did not return him so I was correct in that instance. I’m sure I’ll continue to stumble across these discrepancies but I don’t mind as it adds a little extra something to this personal project of mine.</p><p>Below is the aforementioned GG/NYY code snippet.</p><pre>-- Create a temp table for every Gold Glove<br>SELECT DISTINCT(playerID), awardID, yearID<br>INTO #gg<br>FROM dbo.AwardsPlayers<br>WHERE awardID = &#39;Gold Glove&#39;;<br><br><br>-- Create temp table for all players with batting records for NYY franchise<br>SELECT bt.playerID, p.nameFirst, p.nameLast, bt.yearID<br>INTO #nyy_bat<br>FROM dbo.Batting AS bt<br>INNER JOIN dbo.People AS p<br> ON bt.playerID = p.playerID<br>WHERE bt.teamID IN (&#39;BLA&#39;, &#39;NYA&#39;);<br><br><br>-- Create temp table for all players with pitching records for NYY franchise<br>SELECT pt.playerID, p.nameFirst, p.nameLast, pt.yearID<br>INTO #nyy_pit<br>FROM dbo.Pitching AS pt<br>INNER JOIN dbo.People AS p<br> ON pt.playerID = p.playerID<br>WHERE pt.teamID IN (&#39;BLA&#39;, &#39;NYA&#39;);<br><br><br>-- Create temp table joining every recorded player for NYY franchise<br>SELECT *<br>INTO #nyy<br>FROM #nyy_bat<br>UNION<br>SELECT *<br>FROM #nyy_pit;<br><br><br>-- Query every player who won a Gold Glove with NYY franchise<br>SELECT nyy.playerID, nyy.nameFirst, nyy.nameLast, nyy.yearID, gg.awardID<br>FROM #gg AS gg<br>INNER JOIN #nyy_bat AS nyy<br> ON gg.playerID = nyy.playerID AND<br> gg.yearID = nyy.yearID;</pre><p>As always, remainder of queries can be found on my GitHub. Reach out or comment about anything. Links below.</p><p>GitHub: <a href="https://github.com/petereugenesimon">https://github.com/petereugenesimon</a><br>LinkedIn: <a href="https://www.linkedin.com/in/peteresimonund/">https://www.linkedin.com/in/peteresimonund/</a><br>Twitter: <a href="https://x.com/beisbolx3">https://x.com/beisbolx3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbd081870cb4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/baseball-baseball-baseball/10-15-25-immaculate-grid-sql-dbd081870cb4">10/15/25 — Immaculate Grid/SQL</a> was originally published in <a href="https://medium.com/baseball-baseball-baseball">Baseball baseball baseball</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10/21/25 — SQL/Immaculate Grid]]></title>
            <link>https://medium.com/baseball-baseball-baseball/10-21-25-sql-immaculate-grid-1f20ea12ad90?source=rss----7e243594c21e---4</link>
            <guid isPermaLink="false">https://medium.com/p/1f20ea12ad90</guid>
            <dc:creator><![CDATA[Peter Simon]]></dc:creator>
            <pubDate>Wed, 22 Oct 2025 12:05:10 GMT</pubDate>
            <atom:updated>2025-10-22T12:05:10.075Z</atom:updated>
            <content:encoded><![CDATA[<h3>10/21/25 — SQL/Immaculate Grid</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*nV60krHkxD5yPO2vPVKbWQ.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><p>While I still haven’t got my queries to where I want them to maximize my chances of getting the lowest Rarity Score, I ended up getting #1 here on this one. And that was only using the first player that popped up in the query, so the first player in the alphabetical order.</p><p>I know I mentioned this in my first post about this but I feel kind of bad doing this because it was so easy to get #1. I think I’m just going to do this with archived versions because setting the tone early yesterday morning with #1 didn’t feel quite right. Especially when you see who I used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*skqqWbGNE0SiqkDm1ja6ng.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*uWztcXCrUNofCF8_sfzNVg.jpeg" /><figcaption>From ImmaculateGrid.com</figcaption></figure><p>As I mentioned in my first post too, I’m sure there are already people out there using Baseball Reference or Stathead to do this themselves but it does feel like I’m diminishing the spirit of the game. No disrespect to Sam Agnew or Walt Alexander but those probably aren’t names people are just listing off the top of their head.</p><p>Below is the code snippet for the Nationals/Angels square.</p><pre>-- LAHMAN DB DOES NOT CONTAIN ANY 2025 RECORDS<br><br><br>-- Query franchise &amp; team IDs<br>SELECT DISTINCT(tf.franchID), tf.franchName, t.teamID, t.name<br>FROM dbo.TeamsFranchises AS tf<br>INNER JOIN dbo.Teams AS t<br> ON tf.franchID = t.franchID;<br><br><br>-- Create temp table for all players with batting records for WSN franchise<br>SELECT DISTINCT(bt.playerID), p.nameFirst, p.nameLast<br>INTO #wsn_bat<br>FROM dbo.Batting AS bt<br>INNER JOIN dbo.People AS p<br> ON bt.playerID = p.playerID<br>WHERE bt.teamID IN (&#39;MON&#39;, &#39;WAS&#39;);<br><br><br>-- Create temp table for all players with pitching records for WSN franchise<br>SELECT DISTINCT(pt.playerID), p.nameFirst, p.nameLast<br>INTO #wsn_pit<br>FROM dbo.Pitching AS pt<br>INNER JOIN dbo.People AS p<br> ON pt.playerID = p.playerID<br>WHERE pt.teamID IN (&#39;MON&#39;, &#39;WAS&#39;);<br><br><br>-- Create temp table joining every recorded player for WSN franchise<br>SELECT *<br>INTO #wsn<br>FROM #wsn_bat<br>UNION<br>SELECT *<br>FROM #wsn_pit;<br><br><br>-- Create temp table for all players with batting records for ANA franchise<br>SELECT DISTINCT(bt.playerID), p.nameFirst, p.nameLast<br>INTO #ana_bat<br>FROM dbo.Batting AS bt<br>INNER JOIN dbo.People AS p<br> ON bt.playerID = p.playerID<br>WHERE bt.teamID IN (&#39;ANA&#39;, &#39;CAL&#39;, &#39;LAA&#39;);<br><br><br>-- Create temp table for all players with pitching records for ANA franchise<br>SELECT DISTINCT(pt.playerID), p.nameFirst, p.nameLast<br>INTO #ana_pit<br>FROM dbo.Pitching AS pt<br>INNER JOIN dbo.People AS p<br> ON pt.playerID = p.playerID<br>WHERE pt.teamID IN (&#39;ANA&#39;, &#39;CAL&#39;, &#39;LAA&#39;);<br><br><br>-- Create temp table joining every recorded player for ANA franchise<br>SELECT *<br>INTO #ana<br>FROM #ana_bat<br>UNION<br>SELECT *<br>FROM #ana_pit;<br><br><br>-- Query all players who played for WSN &amp; ANA franchises<br>SELECT DISTINCT(wsn.playerID), wsn.nameFirst, wsn.nameLast<br>FROM #wsn AS wsn<br>INNER JOIN #ana AS ana<br> ON wsn.playerID = ana.playerID;</pre><p>You can find the rest of the queries (and all the others) on my GitHub. Please comment or reach out (for any reason). Thanks for the read. Links below.</p><p>GitHub: <a href="https://github.com/petereugenesimon">https://github.com/petereugenesimon</a><br>LinkedIn: <a href="https://www.linkedin.com/in/peteresimonund/">https://www.linkedin.com/in/peteresimonund/</a><br>Twitter: <a href="https://x.com/beisbolx3">https://x.com/beisbolx3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f20ea12ad90" width="1" height="1" alt=""><hr><p><a href="https://medium.com/baseball-baseball-baseball/10-21-25-sql-immaculate-grid-1f20ea12ad90">10/21/25 — SQL/Immaculate Grid</a> was originally published in <a href="https://medium.com/baseball-baseball-baseball">Baseball baseball baseball</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>