Anybody care to help to remove player duplications?

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Anybody care to help to remove player duplications?

Postby Guest » Wed Sep 03, 2008 4:34 am

Anybody out there willing to help to write a big query, or more likely a script, to rid the database of player duplications?

I have tried to look how to do it, but I can't find enough time to work through all the tables and fields. And I do not have the pgsql scripting knowledge to build a script that selects the player id's, put them in a cursor, walks through the cursor, updates the id_player of all tables and then deletes the redundant players from the player table.

Anybody care to help with this?
Guest
 

Re: Anybody care to help to remove player duplications?

Postby Guest » Sun Sep 28, 2008 9:46 am

Is the lack of response because a) nobody else experiences duplicate player names or b) because nobody here has the knowledge to create such a script?

I'd really like to get started on this, the amount of duplications is staggering by now......
Guest
 

Re: Anybody care to help to remove player duplications?

Postby WhiteRider » Sun Sep 28, 2008 10:08 am

Sorry - I don't remember seeing this post when you first made it. That said, I'm not able to help you directly. I'll let the developers know, as I said in the other thread..
You would have to be REALLY careful about doing this in your database.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Anybody care to help to remove player duplications?

Postby Guest » Sat Oct 04, 2008 12:31 pm

Indeed I have to be really careful, that's why I was hoping that the development crew could lend a hand :)
Guest
 


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests