Stat just for titan poker

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

Stat just for titan poker

Postby el_hombre » Thu May 28, 2009 4:19 pm

I want to create a custom stat (a simple stat which calculates affiliate bonus points from the rake), not for the hud, just for the PT3 tables. but i just want to see this stat for one special pokerroom. I think the best way (make this table row disapear for all other pokerrooms) should not be possible, but is it posible to set the stat value to "0" for all other pokerrrooms?
I think i have to use an "if", but what is the variable i have to use to make these if descision?
el_hombre
 
Posts: 107
Joined: Sat May 24, 2008 10:45 am

Re: Stat just for titan poker

Postby kraada » Thu May 28, 2009 5:35 pm

If you want it to show on the HUD you need to make the stat in the Holdem Cash Player Statistics section.

You'd want to create a new column:

cnt_titan_rake: sum(if[holdem_hand_summary.id_site = '400', holdem_hand_summary.amt_rake, 0])

This will then create a column that's cnt_titan which is the sum of all titan only rake. You can then use that column in your custom stat to manipulate it as need be. In the format expression for the stat you can then have: if( cnt_titan_rake > 0, <<display whatever you want to display here>>, '')

And that will display whatever you put in the <<>> section (though you don't actually want the <<>> characters; something like cnt_titan_rake * .4 or something would be more along the lines of what you want to put there).
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Stat just for titan poker

Postby Dilas » Tue Jun 09, 2009 11:02 am

I tried to create this stat in the Holdem Cash Sessions section.

This leads to funny results. Session stats show mor then 100000 hands instead ogf only 100 etc

So my question is: How can I select the rake of a pokerroom (maybe Titan) for the sessions section.

Under "winnings" I would like to see several columns with the rake I paid at Titan, Pokerstars, etc...
Dilas
 
Posts: 138
Joined: Wed Apr 23, 2008 11:48 am

Re: Stat just for titan poker

Postby kraada » Tue Jun 09, 2009 11:18 am

In that case use holdem_table_session_summary.id_site instead of holdem_hand_summary.id_site. The other stuff should be the same.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Stat just for titan poker

Postby Dilas » Tue Jun 09, 2009 12:29 pm

Same crazy result - all the other stats (on winnings) show funny results after the new stat was added to the list
Dilas
 
Posts: 138
Joined: Wed Apr 23, 2008 11:48 am

Re: Stat just for titan poker

Postby kraada » Tue Jun 09, 2009 1:13 pm

I just looked back at your column; try also using holdem_table_session_summary.amt_rake instead of holdem_hand_summary.amt_rake.

The former is the rake for a whole session the latter is the rake for an individual hand; using individual hand columns in the sessions section is going to cause problems.

(Sorry I should've caught that the first time :oops: )
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Stat just for titan poker

Postby Dilas » Tue Jun 09, 2009 4:42 pm

Thx now it works fine
Dilas
 
Posts: 138
Joined: Wed Apr 23, 2008 11:48 am

Re: Stat just for titan poker

Postby el_hombre » Wed Jul 08, 2009 5:44 pm

sorry for reactivating such an old post, but is there a way to use more specific site ids? id_site=400 ist for all ipoker skins: titan, cdpoker, mansionpoker etc. is there a way to just choose titan or mansion? like id_site=401 or something like that?
After looking into the database scheme i do not think so.
el_hombre
 
Posts: 107
Joined: Sat May 24, 2008 10:45 am

Re: Stat just for titan poker

Postby WhiteRider » Thu Jul 09, 2009 4:56 am

No, there isn't.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


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

Who is online

Users browsing this forum: No registered users and 0 guests