Latest News: Updated Patch #4, version 10.4.31 available! - OOTP 10 RELEASED! - Title Bout Championship Boxing 2.5 released! - Inside the Park Baseball Patch 1.03 released, DEMO now available

Click here to download Out of the Park Baseball 10!

Go Back   OOTP Developments Forums

> OUT OF THE PARK BASEBALL 9 > OOTP 9 - Mods > Database Tools


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)
Minors (Triple A)
 
Join Date: May 2006
Posts: 201
Thanked 1x in 1 post
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,751
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.
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
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 05:59 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2009 Out of the Park Developments