<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>BaSQL - new forum posts</title>
		<link>http://basql.wikidot.com/forum/start</link>
		<description>Posts in forums of the site &quot;BaSQL&quot;</description>
				<copyright></copyright>
		<lastBuildDate></lastBuildDate>
		
					<item>
				<guid>http://basql.wikidot.com/forum/t-183483#post-588691</guid>
				<title>Requery the GameDay Fielder code?</title>
				<link>http://basql.wikidot.com/forum/t-183483/requery-the-gameday-fielder-code#post-588691</link>
				<description></description>
				<pubDate>Sat, 19 Sep 2009 23:53:07 +0000</pubDate>
				<wikidot:authorName>kelakos</wikidot:authorName>				<wikidot:authorUserId>379139</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I ran Colin's GameDay fielder code after loading RecentGames.bat into my gameday database from BBOS just to see what it did. Then, I loaded AllAvailableGames.bat into my gameday database to get all the BBOS games. When I look in gameday.event_player table ( that Colin's code created), there are only games from the RecentGames load. What do I need to do to have it include all the new games in my database?</p> <p>Also, how would I retrieve batted ball x,y locations prior to the Pitch F/X GameDay XML data ~2006?</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66022">Datasets / Gameday XML</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-183483/requery-the-gameday-fielder-code">Requery the GameDay Fielder code?</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-136412#post-417991</guid>
				<title>Re: using retrosheet to figure total pitches thrown by pitcher</title>
				<link>http://basql.wikidot.com/forum/t-136412/using-retrosheet-to-figure-total-pitches-thrown-by-pitcher#post-417991</link>
				<description></description>
				<pubDate>Mon, 16 Mar 2009 14:05:30 +0000</pubDate>
				<wikidot:authorName>chiefjamesp</wikidot:authorName>				<wikidot:authorUserId>244386</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>could anyone help me parse the pitch sequence strings? i'd like to remove all pickoff throws from the strings, and my best effort was gonna be to use the replace function to delete them essentially, but i was wondering if someone knows a way to pull the characters that represent pitches out of the string and into a new column (is that possible?) any ideas, as always, are greatly appreciated, have an awesome day!</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66021">Datasets / Retrosheet</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-136412/using-retrosheet-to-figure-total-pitches-thrown-by-pitcher">using retrosheet to figure total pitches thrown by pitcher</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-136412#post-408465</guid>
				<title>Re: using retrosheet to figure total pitches thrown by pitcher</title>
				<link>http://basql.wikidot.com/forum/t-136412/using-retrosheet-to-figure-total-pitches-thrown-by-pitcher#post-408465</link>
				<description></description>
				<pubDate>Mon, 09 Mar 2009 03:50:30 +0000</pubDate>
				<wikidot:authorName>chiefjamesp</wikidot:authorName>				<wikidot:authorUserId>244386</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>oh man, I was really hoping you might write a tutorial exactly like this at! thank you so much!</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66021">Datasets / Retrosheet</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-136412/using-retrosheet-to-figure-total-pitches-thrown-by-pitcher">using retrosheet to figure total pitches thrown by pitcher</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-135425#post-407987</guid>
				<title>Re: Weather Data</title>
				<link>http://basql.wikidot.com/forum/t-135425/weather-data#post-407987</link>
				<description></description>
				<pubDate>Sun, 08 Mar 2009 16:18:46 +0000</pubDate>
				<wikidot:authorName>Colin Wyers</wikidot:authorName>				<wikidot:authorUserId>243911</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>There's something from SABRMatt on the RetroSQL list. I haven't looked at it yet. Retrosheet's games table has limited weather information as well.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66023">General / General Discussion</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-135425/weather-data">Weather Data</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-136412#post-407972</guid>
				<title>Re: using retrosheet to figure total pitches thrown by pitcher</title>
				<link>http://basql.wikidot.com/forum/t-136412/using-retrosheet-to-figure-total-pitches-thrown-by-pitcher#post-407972</link>
				<description></description>
				<pubDate>Sun, 08 Mar 2009 15:53:22 +0000</pubDate>
				<wikidot:authorName>Colin Wyers</wikidot:authorName>				<wikidot:authorUserId>243911</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Probably more than you bargained for, but <a href="http://statspeak.net/2009/03/creating-a-retrosheet-database-part-i.html">I finally wrote out a Retrosheet tutorial.</a></p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66021">Datasets / Retrosheet</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-136412/using-retrosheet-to-figure-total-pitches-thrown-by-pitcher">using retrosheet to figure total pitches thrown by pitcher</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-136412#post-407113</guid>
				<title>using retrosheet to figure total pitches thrown by pitcher</title>
				<link>http://basql.wikidot.com/forum/t-136412/using-retrosheet-to-figure-total-pitches-thrown-by-pitcher#post-407113</link>
				<description></description>
				<pubDate>Sat, 07 Mar 2009 12:49:17 +0000</pubDate>
				<wikidot:authorName>chiefjamesp</wikidot:authorName>				<wikidot:authorUserId>244386</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello! I was wondering if anyone could suggest some simple ways to get a txt file created using bevent into a database…I used bevent to print the pitch sequence and pitcher for each at bat…I was gonna import it into excel and use the len function to count the length of each pitch sequence (which would give me a list of pitcher and number pitches for each at bat) and then load it into my database and use sqlyog to sum pitches by pitcher id…I guess I am wondering if there is a way to just import the txt as a table into sql, and sum the pitches by pitcher id? Hope I explained my question almost clearly…sorry otherwise!</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66021">Datasets / Retrosheet</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-136412/using-retrosheet-to-figure-total-pitches-thrown-by-pitcher">using retrosheet to figure total pitches thrown by pitcher</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-135425#post-403388</guid>
				<title>Weather Data</title>
				<link>http://basql.wikidot.com/forum/t-135425/weather-data#post-403388</link>
				<description></description>
				<pubDate>Wed, 04 Mar 2009 00:35:11 +0000</pubDate>
				<wikidot:authorName>xeifrank</wikidot:authorName>				<wikidot:authorUserId>246076</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Are there any databases available that have weather data for each game?<br /> Temperate and wind vector.<br /> vr, Xei</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66023">General / General Discussion</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-135425/weather-data">Weather Data</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-108577#post-346298</guid>
				<title>Re: Quick Question about the Primary Position Table</title>
				<link>http://basql.wikidot.com/forum/t-108577/quick-question-about-the-primary-position-table#post-346298</link>
				<description></description>
				<pubDate>Fri, 02 Jan 2009 08:35:45 +0000</pubDate>
				<wikidot:authorName>chiefjamesp</wikidot:authorName>				<wikidot:authorUserId>244386</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>right on, thank you very much for the clarification! aren't there outfield positional breakdowns for the retrosheet era? Is the the data from 1956-1995 too unreliable to be used?</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-108577/quick-question-about-the-primary-position-table">Quick Question about the Primary Position Table</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-108577#post-345814</guid>
				<title>Re: Quick Question about the Primary Position Table</title>
				<link>http://basql.wikidot.com/forum/t-108577/quick-question-about-the-primary-position-table#post-345814</link>
				<description></description>
				<pubDate>Thu, 01 Jan 2009 03:22:30 +0000</pubDate>
				<wikidot:authorName>Colin Wyers</wikidot:authorName>				<wikidot:authorUserId>243911</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I probably didn't write that as clearly as I could/should have. Prior to 1996, fielding numbers in the Databank are only listed as OF; after 1995, they're broken down into the three OF positions as well. For those years where we have CF, LF and RF breakdowns, we're uninterested in the OF data, so that was discarded.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-108577/quick-question-about-the-primary-position-table">Quick Question about the Primary Position Table</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-108577#post-345372</guid>
				<title>Re: Quick Question about the Primary Position Table</title>
				<link>http://basql.wikidot.com/forum/t-108577/quick-question-about-the-primary-position-table#post-345372</link>
				<description></description>
				<pubDate>Wed, 31 Dec 2008 04:59:11 +0000</pubDate>
				<wikidot:authorName>chiefjamesp</wikidot:authorName>				<wikidot:authorUserId>244386</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I have another (probably pretty lame) question about the from statement in the primary position query</p> <p>"FROM (SELECT * from fielding<br /> WHERE IF(yearID&gt;1995 AND POS = "OF",1,0) != 1 ORDER BY G Desc) f"</p> <p>I can't really figure out whats going on there.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-108577/quick-question-about-the-primary-position-table">Quick Question about the Primary Position Table</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-116004#post-345345</guid>
				<title>Re: sql for positional adjustments?</title>
				<link>http://basql.wikidot.com/forum/t-116004/sql-for-positional-adjustments#post-345345</link>
				<description></description>
				<pubDate>Wed, 31 Dec 2008 03:30:22 +0000</pubDate>
				<wikidot:authorName>Colin Wyers</wikidot:authorName>				<wikidot:authorUserId>243911</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The CASE is what I'd use for a one-off query. The other option is to set up a table with the positional adjustments, and then to use a JOIN statement.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-116004/sql-for-positional-adjustments">sql for positional adjustments?</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-116356#post-345136</guid>
				<title>Re: Adding CSV to existing database</title>
				<link>http://basql.wikidot.com/forum/t-116356/adding-csv-to-existing-database#post-345136</link>
				<description></description>
				<pubDate>Tue, 30 Dec 2008 20:54:14 +0000</pubDate>
				<wikidot:authorName>TucsonRoyal</wikidot:authorName>				<wikidot:authorUserId>244147</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>figured it out</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-116356/adding-csv-to-existing-database">Adding CSV to existing database</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-116356#post-345102</guid>
				<title>Adding CSV to existing database</title>
				<link>http://basql.wikidot.com/forum/t-116356/adding-csv-to-existing-database#post-345102</link>
				<description></description>
				<pubDate>Tue, 30 Dec 2008 20:20:20 +0000</pubDate>
				<wikidot:authorName>TucsonRoyal</wikidot:authorName>				<wikidot:authorUserId>244147</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I have a new CSV I want to add to an existing database (sql database created with the help of Colin's articles), what is the easiest way to do this? The first row of data is the columns headings.</p> <p>primary pos data from: <a href="http://tangotiger.net/bdb/">http://tangotiger.net/bdb/</a></p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-116356/adding-csv-to-existing-database">Adding CSV to existing database</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-116004#post-344676</guid>
				<title>Re: sql for positional adjustments?</title>
				<link>http://basql.wikidot.com/forum/t-116004/sql-for-positional-adjustments#post-344676</link>
				<description></description>
				<pubDate>Tue, 30 Dec 2008 01:50:55 +0000</pubDate>
				<wikidot:authorName>chiefjamesp</wikidot:authorName>				<wikidot:authorUserId>244386</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>hey lar, thanks a ton! the case statement helped me do exactly what i was trying to do!</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-116004/sql-for-positional-adjustments">sql for positional adjustments?</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-116004#post-344543</guid>
				<title>Re: sql for positional adjustments?</title>
				<link>http://basql.wikidot.com/forum/t-116004/sql-for-positional-adjustments#post-344543</link>
				<description></description>
				<pubDate>Mon, 29 Dec 2008 21:23:36 +0000</pubDate>
				<wikidot:authorName>lar</wikidot:authorName>				<wikidot:authorUserId>244123</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Try using a CASE statement… it's meant for instances almost exactly like this, where you have a list of possible values and something different to do depending on what the value is…</p> <p>for example</p> <div class="code"> <pre> <code>select playerid, yearid, CASE WHEN pos = 'C' THEN (innings/162) * 12.5 WHEN pos = 'SS' THEN (innings/162) * 7.5 -- etc ELSE 1 -- use 'ELSE' as the catch-all, to be used on anything that wasn't listed above END as POS_ADJUSTMENT from fielding;</code> </pre></div> <p>there might be a more elegant way to do it with MySQL variables, but using CASE is a little more generic</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-116004/sql-for-positional-adjustments">sql for positional adjustments?</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-116004#post-344529</guid>
				<title>Re: sql for positional adjustments?</title>
				<link>http://basql.wikidot.com/forum/t-116004/sql-for-positional-adjustments#post-344529</link>
				<description></description>
				<pubDate>Mon, 29 Dec 2008 21:02:09 +0000</pubDate>
				<wikidot:authorName>TucsonRoyal</wikidot:authorName>				<wikidot:authorUserId>244147</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Use a nested IF statement</p> <p>If pos = 'c'<br /> then tot = 12.5<br /> else<br /> if pos = 'ss'<br /> then tot = 7.5<br /> …….</p> <p>It will be pretty long, but should work. If is the only method I know, but there might be another method.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-116004/sql-for-positional-adjustments">sql for positional adjustments?</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-116004#post-344124</guid>
				<title>sql for positional adjustments?</title>
				<link>http://basql.wikidot.com/forum/t-116004/sql-for-positional-adjustments#post-344124</link>
				<description></description>
				<pubDate>Mon, 29 Dec 2008 05:03:02 +0000</pubDate>
				<wikidot:authorName>chiefjamesp</wikidot:authorName>				<wikidot:authorUserId>244386</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I was trying to figure positional adjustments, but got hung up on the command to use. I was basically trying to do something like (Innings/162) * (if pos='c',12.5, if pos='ss',7.5 etc…), if that makes any sense (I'm obviously quite the sql noob)…there is obviously a much better way to do this that eludes me…</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-116004/sql-for-positional-adjustments">sql for positional adjustments?</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-115934#post-344057</guid>
				<title>Re: SQL Command Help</title>
				<link>http://basql.wikidot.com/forum/t-115934/sql-command-help#post-344057</link>
				<description></description>
				<pubDate>Mon, 29 Dec 2008 01:48:31 +0000</pubDate>
				<wikidot:authorName>Colin Wyers</wikidot:authorName>				<wikidot:authorUserId>243911</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>First, go ahead and set up the season stats views like so:</p> <p><a href="http://basql.wikidot.com/full-year-statistics">http://basql.wikidot.com/full-year-statistics</a></p> <p>Then, do something like:</p> <p>SELECT p1.playerID, p1.yearID, p1.ERA, p2.ERA<br /> FROM pitch_year_total_avg p1, pitch_year_total_avg p2<br /> WHERE p1.playerID = p2.playerID<br /> AND p1.yearID = p2.yearID + 1;</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-115934/sql-command-help">SQL Command Help</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-115934#post-343916</guid>
				<title>SQL Command Help</title>
				<link>http://basql.wikidot.com/forum/t-115934/sql-command-help#post-343916</link>
				<description></description>
				<pubDate>Sun, 28 Dec 2008 18:31:44 +0000</pubDate>
				<wikidot:authorName>John Signore</wikidot:authorName>				<wikidot:authorUserId>244976</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hey guys I was wondering if you could help me with what is probably a simple SQL query. What I was wanting to do was to get a listing of all pitchers ERA in year 1 as well as the same pitchers ERA in year 2. What I was wanting to do is have some cutoff (say greater than 150 innings pitched each season) so that I'm only getting pitchers that have pitched 150+ in each season. How would I go about this?</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-115934/sql-command-help">SQL Command Help</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-110238#post-335441</guid>
				<title>Re: Importing Retrosheet and Gameday Data into MySQL</title>
				<link>http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql#post-335441</link>
				<description></description>
				<pubDate>Mon, 15 Dec 2008 16:12:42 +0000</pubDate>
				<wikidot:authorName>TucsonRoyal</wikidot:authorName>				<wikidot:authorUserId>244147</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I just found out it will not be available to be download for a bit. I have it on my computer and I am thinking of finding another way to make it available. If someone has a FTP site I would not have a problem moving it over to it. Let me know the information and I will while I am at work. I am also going to see if I can fit it on a DVD, really close in size. Contact me at wydiyd at hotmail dot com.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql">Importing Retrosheet and Gameday Data into MySQL</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-110238#post-334712</guid>
				<title>Re: Importing Retrosheet and Gameday Data into MySQL</title>
				<link>http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql#post-334712</link>
				<description></description>
				<pubDate>Sun, 14 Dec 2008 20:23:21 +0000</pubDate>
				<wikidot:authorName>TucsonRoyal</wikidot:authorName>				<wikidot:authorUserId>244147</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It will be available, but the person hosting doesn't want to make it available yet because of the size of it. He hasn't had a chance to limit the number of downloads, hopefully within the week. Check back in a few days.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql">Importing Retrosheet and Gameday Data into MySQL</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-110238#post-334617</guid>
				<title>Re: Importing Retrosheet and Gameday Data into MySQL</title>
				<link>http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql#post-334617</link>
				<description></description>
				<pubDate>Sun, 14 Dec 2008 18:04:05 +0000</pubDate>
				<wikidot:authorName>gophsfan31</wikidot:authorName>				<wikidot:authorUserId>243982</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Is that database available for download yet or are you still working on it? If you are done I would be very interested in downloading it from you.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql">Importing Retrosheet and Gameday Data into MySQL</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-112200#post-332501</guid>
				<title>Re: Help with SQL command</title>
				<link>http://basql.wikidot.com/forum/t-112200/help-with-sql-command#post-332501</link>
				<description></description>
				<pubDate>Thu, 11 Dec 2008 16:55:10 +0000</pubDate>
				<wikidot:authorName>Colin Wyers</wikidot:authorName>				<wikidot:authorUserId>243911</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You first need to run a query like so:</p> <p>Select<br /> p.playerID,<br /> from pitching p<br /> where (p.yearID &gt; "1985"<br /> and (p.IPouts/3) &gt; "160")<br /> group by p.playerID;</p> <p>And then join that on your main query.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-112200/help-with-sql-command">Help with SQL command</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-112200#post-331586</guid>
				<title>Help with SQL command</title>
				<link>http://basql.wikidot.com/forum/t-112200/help-with-sql-command#post-331586</link>
				<description></description>
				<pubDate>Wed, 10 Dec 2008 16:14:40 +0000</pubDate>
				<wikidot:authorName>TucsonRoyal</wikidot:authorName>				<wikidot:authorUserId>244147</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I want to get all the retired pitchers that pitched greater than 160 between 1985 and current . The problem is that when I sum the innings, games and GS, the sum is only for the seasons that the pitcher pitched over 160 innings, not all seasons. Can some look to see what I am doing wrong. Thanks -Jeff</p> <p>Select<br /> sp.nameFirst,<br /> sp.nameLast,<br /> p.playerID,<br /> sp.playerID,<br /> sp.college,<br /> sp.birthYear,<br /> c.yearMin,<br /> c.yearMax,<br /> year (sp.debut),<br /> year (sp.finalGame),<br /> Count(p.YearID) as YS,<br /> SUM(p.G) as G,<br /> sum(p.GS) as GS,<br /> sum(p.IPouts/3) as IP<br /> from pitching p<br /> join master sp on p.playerID=sp.playerID<br /> left join schoolsplayers c on c.playerID=sp.playerID<br /> where (p.yearID &gt; "1985"<br /> and (p.IPouts/3) &gt; "160"<br /> and birthCountry = 'USA'<br /> and finalGame is not null)<br /> group by p.playerID<br /> ;</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-112200/help-with-sql-command">Help with SQL command</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-110238#post-328101</guid>
				<title>Re: Importing Retrosheet and Gameday Data into MySQL</title>
				<link>http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql#post-328101</link>
				<description></description>
				<pubDate>Sat, 06 Dec 2008 05:09:55 +0000</pubDate>
				<wikidot:authorName>TucsonRoyal</wikidot:authorName>				<wikidot:authorUserId>244147</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I am going to make available the complete RetroSheet data as a single .sql download. We are just finsihing up the testing and will have it so only 1-2 people can download it at a time. I could see a rush once it is up. Since I get the hosting basically for free, I don't want to abuse it. It is at 4.5 GBs. Takes a while to download and extract, but works great. I should have it ready within the week.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql">Importing Retrosheet and Gameday Data into MySQL</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-110238#post-325054</guid>
				<title>Re: Importing Retrosheet and Gameday Data into MySQL</title>
				<link>http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql#post-325054</link>
				<description></description>
				<pubDate>Wed, 03 Dec 2008 03:50:36 +0000</pubDate>
				<wikidot:authorName>gophsfan31</wikidot:authorName>				<wikidot:authorUserId>243982</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I'll try to look over this and see if I can figure it out. If not I will just wait for your tutorial</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql">Importing Retrosheet and Gameday Data into MySQL</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-110238#post-325042</guid>
				<title>Re: Importing Retrosheet and Gameday Data into MySQL</title>
				<link>http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql#post-325042</link>
				<description></description>
				<pubDate>Wed, 03 Dec 2008 03:29:14 +0000</pubDate>
				<wikidot:authorName>Colin Wyers</wikidot:authorName>				<wikidot:authorUserId>243911</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It's a long process - unfortunately I'm not home right now so I can't even look at my database for a point of reference.</p> <p>I'd advise checking out the <a href="http://sports.groups.yahoo.com/group/RetroSQL/">RetroSQL mailing group</a> - there's a lot of good info there about setting up a play-by-play database. I think you have to be a member to search the archives, though. One of the things on my to-do list is to take that material and write it up as a comprehensive tutorial.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql">Importing Retrosheet and Gameday Data into MySQL</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-110238#post-324911</guid>
				<title>Importing Retrosheet and Gameday Data into MySQL</title>
				<link>http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql#post-324911</link>
				<description></description>
				<pubDate>Tue, 02 Dec 2008 23:52:04 +0000</pubDate>
				<wikidot:authorName>gophsfan31</wikidot:authorName>				<wikidot:authorUserId>243982</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I'm having trouble importing Retrosheet and Gameday Data into MySQL. Could someone just tell me how to do this so I can see what I'm doing wrong?</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-110238/importing-retrosheet-and-gameday-data-into-mysql">Importing Retrosheet and Gameday Data into MySQL</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-109268#post-321867</guid>
				<title>Re: New subjects</title>
				<link>http://basql.wikidot.com/forum/t-109268/new-subjects#post-321867</link>
				<description></description>
				<pubDate>Sat, 29 Nov 2008 17:56:35 +0000</pubDate>
				<wikidot:authorName>Colin Wyers</wikidot:authorName>				<wikidot:authorUserId>243911</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I added two new forum subjects - one to cover scripting languages and one to covery stats packages. If there's a need later on, I can break them down further.</p> <p>If anyone else has subject topics to request for the forum, let me know.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66023">General / General Discussion</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-109268/new-subjects">New subjects</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-109268#post-321840</guid>
				<title>New subjects</title>
				<link>http://basql.wikidot.com/forum/t-109268/new-subjects#post-321840</link>
				<description></description>
				<pubDate>Sat, 29 Nov 2008 16:59:51 +0000</pubDate>
				<wikidot:authorName>xeifrank</wikidot:authorName>				<wikidot:authorUserId>246076</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Is it possible to add another subject matter area to the Wiki? I'd like to see a programming area that relates to writing Perl scripts which interface with MySQL or other databases. There are other programming languages which can be used to interface with a DB, so feel free to organize it however you'd like.<br /> vr, Xei</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66023">General / General Discussion</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-109268/new-subjects">New subjects</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-108577#post-319986</guid>
				<title>Re: Quick Question about the Primary Position Table</title>
				<link>http://basql.wikidot.com/forum/t-108577/quick-question-about-the-primary-position-table#post-319986</link>
				<description></description>
				<pubDate>Thu, 27 Nov 2008 03:15:27 +0000</pubDate>
				<wikidot:authorName>Colin Wyers</wikidot:authorName>				<wikidot:authorUserId>243911</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>That's probably the largest potential source of discrepancy. The other possibility I can think of is that Access and MySQL differ in how to handle fractional values like that. I can try to do some testing when I get home tonight.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-108577/quick-question-about-the-primary-position-table">Quick Question about the Primary Position Table</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-108577#post-319976</guid>
				<title>Quick Question about the Primary Position Table</title>
				<link>http://basql.wikidot.com/forum/t-108577/quick-question-about-the-primary-position-table#post-319976</link>
				<description></description>
				<pubDate>Thu, 27 Nov 2008 02:46:49 +0000</pubDate>
				<wikidot:authorName>John Signore</wikidot:authorName>				<wikidot:authorUserId>244976</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I was trying to follow the wOBA thread on the BOOK blog. I'm doing this in MySQL so I used the SQL on this page for the primpos table instead of tango's but I think its giving me different results.</p> <p>For instance in 2006 for RperOut instead of .182 that he gets, im getting .185. I'm wondering if the difference between Colin's table and Tango's for primpos is why there's a difference?</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66019">Databases / MySQL</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-108577/quick-question-about-the-primary-position-table">Quick Question about the Primary Position Table</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-108203#post-319757</guid>
				<title>Re: Initial goals of BaSQL?</title>
				<link>http://basql.wikidot.com/forum/t-108203/initial-goals-of-basql#post-319757</link>
				<description></description>
				<pubDate>Wed, 26 Nov 2008 20:26:15 +0000</pubDate>
				<wikidot:authorName>Chuck Scott</wikidot:authorName>				<wikidot:authorUserId>244705</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thanks Colin…looked around a bit so now understand what a wiki is. I'm brand new to relational databases so it's going to take me a bit of time to come on board and add anything of value to these discussions…am currently working through the initial 2 articles from StatSpeak and that CONCAT statement has me stumped…not the basic statement on a stand alone basis, but when it's inserted in a longer querry. Have no idea where the author grabed things like "p.playerid" and "m.playerid", etc… Where the heck did the p. and m. come from? (rhetorical…no need to answer…I'll figure it out).</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66023">General / General Discussion</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-108203/initial-goals-of-basql">Initial goals of BaSQL?</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-108203#post-319425</guid>
				<title>Re: Initial goals of BaSQL?</title>
				<link>http://basql.wikidot.com/forum/t-108203/initial-goals-of-basql#post-319425</link>
				<description></description>
				<pubDate>Wed, 26 Nov 2008 15:07:23 +0000</pubDate>
				<wikidot:authorName>Colin Wyers</wikidot:authorName>				<wikidot:authorUserId>243911</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Wikidot is our host - they're a free Wiki service.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66023">General / General Discussion</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-108203/initial-goals-of-basql">Initial goals of BaSQL?</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-108203#post-319409</guid>
				<title>Re: Initial goals of BaSQL?</title>
				<link>http://basql.wikidot.com/forum/t-108203/initial-goals-of-basql#post-319409</link>
				<description></description>
				<pubDate>Wed, 26 Nov 2008 14:51:19 +0000</pubDate>
				<wikidot:authorName>Chuck Scott</wikidot:authorName>				<wikidot:authorUserId>244705</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>First off, I'm wondering where I really am? I thought I was signing up for BaSQL and now I'm receiving e-mail from Wikidot.com (??)…I don't understand…please direct me to an explanation…thanks.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66023">General / General Discussion</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-108203/initial-goals-of-basql">Initial goals of BaSQL?</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-108203#post-318870</guid>
				<title>Re: Initial goals of BaSQL?</title>
				<link>http://basql.wikidot.com/forum/t-108203/initial-goals-of-basql#post-318870</link>
				<description></description>
				<pubDate>Tue, 25 Nov 2008 23:14:31 +0000</pubDate>
				<wikidot:authorName>Colin Wyers</wikidot:authorName>				<wikidot:authorUserId>243911</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The two main goals (that I have, at least) are:</p> <ol> <li>To provide a place for people to ask questions</li> <li>To provide code samples for people to use and modify.</li> </ol> <p>The pages tagged "snippets" are my current focus - I'm taking a lot of my old code and posting it basically as-is. I'm not saying improvements couldn't be made. Porting some of it to Access wouldn't be the worst idea.</p> <p>I can host data files, so long as they aren't too large - I think we get 100&nbsp;MB hosting total, I'll have to check. There are a few things that I've adapted from other sources that I'll see about getting the permission to share here.</p> <p>And then the big one is to do tutorials for setting up play-by-play data. That's on my to-do list, somewhere…</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66023">General / General Discussion</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-108203/initial-goals-of-basql">Initial goals of BaSQL?</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-108203#post-318702</guid>
				<title>Re: Initial goals of BaSQL?</title>
				<link>http://basql.wikidot.com/forum/t-108203/initial-goals-of-basql#post-318702</link>
				<description></description>
				<pubDate>Tue, 25 Nov 2008 20:13:12 +0000</pubDate>
				<wikidot:authorName>jomuca</wikidot:authorName>				<wikidot:authorUserId>244316</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I for one would like to see more on how to use the database in Access—as that is the only database application I have access to use. Any guidance that others have for using this database in Access would be appreciated.</p> <p>I've seen Tango's mdb file which was great, but all that gave me is more questions.</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66023">General / General Discussion</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-108203/initial-goals-of-basql">Initial goals of BaSQL?</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://basql.wikidot.com/forum/t-108203#post-318650</guid>
				<title>Initial goals of BaSQL?</title>
				<link>http://basql.wikidot.com/forum/t-108203/initial-goals-of-basql#post-318650</link>
				<description></description>
				<pubDate>Tue, 25 Nov 2008 19:15:34 +0000</pubDate>
				<wikidot:authorName>lar</wikidot:authorName>				<wikidot:authorUserId>244123</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>First off, thanks to Colin for setting this up. If this wiki gets the attention and detail that it *could*, then this will be a great resource for anyone interested in studying baseball statistics. I'm eager to help however I can.</p> <p>I was wondering if people wanted to chime in with their ideas on what should be included in BaSQL, and what kind of content and features we hope to see. I know Colin said, in his post on statspeak, that he hopes it will be the "<em>central clearinghouse for information on how to commit sabermetrics using a relational database.</em>" There's a lot of room for what can fit under that, though, and I figured it might be good to list some of those thoughts.</p> <p>Are there thoughts on: what topics need to be addressed first (mysql vs. access vs others? implementing Win Shares/other advanced stats? connecting bdb data with retrosheet data? many others?) ? What features might be nice to implement, if possible (spotlight articles? beginning tutorials? downloadable files? data hosting?) ? How active people might want to communicate with each other (this forum? mailing list? private messages?) ? I'm sure there are other questions I'm forgetting here…</p> <br/>Forum category: <a href="http://basql.wikidot.com/forum/c-66023">General / General Discussion</a><br/>Forum thread: <a href="http://basql.wikidot.com/forum/t-108203/initial-goals-of-basql">Initial goals of BaSQL?</a>
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>