Latest News: OOTP 13 Announced with Screenshots & Feature List! Pre-Order Now! - OOTP Baseball 12 Available! - iOOTP Baseball 2011 Available! - Title Bout Championship Boxing 2.5 released! - Inside the Park Baseball Patch 1.03 released, DEMO now available

Pre-Order OOTP 13, Save & Win! | OOTP 12 Off-Season Special, just $19.99!

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

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

Reply
 
LinkBack Thread Tools Display Modes
Old 01-27-2009, 02:49 PM   #1 (permalink)
All Star Reserve
 
Join Date: May 2006
Posts: 509
Thanks: 54
Thanked 50x in 37 posts
newbie question...

I work for a printer and we have some mail merging software that I would like to use to make " online baseball cards" for some players for online leagues. To do this I need a tab delimited or comma delimited file that contains the info I want to display.

The problem is that some of the info I want would be in one csv file (ex: players.csv) and some other info I want is in a different .csv file (ex: players_awards, players_pitching or players_batting).

I don't have Microsoft Access, and don't know what SQL files are (or what software uses them), so I have only done .csv dumps.

My question is, when using either the Access or SQL dumps, does the software recognize data from all the files, and tie it in to one "record". Meaning if I look up player John Smith in Access, does it know how to find data from players_awards and players_batting at the same time? And if it can do that am I correct to assume that I can create a tab delimited or comma delimited file that would have all of that info?

Hope I am making sense.
Thanks in advance for any help.
Jaxxvain is offline   Reply With Quote
Old 01-27-2009, 10:36 PM   #2 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,870
Thanks: 0
Thanked 22x in 14 posts
The way it works is this:

In each CSV file, you will see fields named:

player_id
team_id
city_id

and others...

You can do a lookup for each of these IDs, For example:

the 1st field in the players.csv is the player's ID. So, if in the games.csv file, it references a player_id, then you can look up in the players.csv file to see the players name. In access or excel, this is known as a lookup.

Be warned. The teams.csv is not accurate for historical correct leagues or if you change team names. Basically, the IDs are used again. So, in 1901 the New York Highlanders will have a team ID of 1. Later, in 1955, the New York Yankees will also have a team ID of 1. So, anyone from the Highlander team will show up as being on the Yankees.

The work around is to do a yearly dump and access the teams.csv from said year. That is one of the reasons that I recommend everyone do a yearly dump. There is another work around that I have created in Visual Basic, but it is too complex to explain here.
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
Comedian2004 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

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



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


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