Hi All,
I'm building a web based killboard from a game that I play online. The site accepts a text message that is sent to the player in game, describing the details of the kills. I have written a script that parses the data then submits it to the database. Problem is, I designed the db improperly.
I have several tables for the different types of data that is parsed: Kills, Victims, Involved Parties, and Destroyed Items.
The Involved Parties and Destroyed Items are related to the Kills table by the Kills.ID(Primary Key), but the Victim and Kills table are related by the Victims.ID(Primary Key).
I didn't realize the problem until I after I began accepting data from players and started to build the searching features for the site.
What I need to do is copy the Kills.ID into the Victims table where the Victims.VictimID = Kills.VictimID, so that I can search all tables related to a kill in the same manner, eg; SELECT * FROM Victims, InvolvedParties, Destroyed Items WHERE KillID = <a kills.ID>.
How do I do this? I currently have about 600 records in the db, and don't want to lose the data.
Thank you.
ryandoah
I'm building a web based killboard from a game that I play online. The site accepts a text message that is sent to the player in game, describing the details of the kills. I have written a script that parses the data then submits it to the database. Problem is, I designed the db improperly.
I have several tables for the different types of data that is parsed: Kills, Victims, Involved Parties, and Destroyed Items.
The Involved Parties and Destroyed Items are related to the Kills table by the Kills.ID(Primary Key), but the Victim and Kills table are related by the Victims.ID(Primary Key).
I didn't realize the problem until I after I began accepting data from players and started to build the searching features for the site.
What I need to do is copy the Kills.ID into the Victims table where the Victims.VictimID = Kills.VictimID, so that I can search all tables related to a kill in the same manner, eg; SELECT * FROM Victims, InvolvedParties, Destroyed Items WHERE KillID = <a kills.ID>.
How do I do this? I currently have about 600 records in the db, and don't want to lose the data.
Thank you.
ryandoah