For Taxes Gross Winnings and Gross Losses

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

For Taxes Gross Winnings and Gross Losses

Postby jhestyr » Mon Jul 28, 2008 6:14 pm

I'm messing around with the custom stats and want to create a stat for the sessions screen that shows gross winnings (total pot - hero contribution - rake when won the hand) and gross losses (hero contribution when did not win hand) for all the hands in a session (as currently defined/listed in program).

I can write the sql and run it externally but to make it show up for use in-game (main screen/hud) i'm not entirely sure how to do the where clause using the User interface for custom statisics...

if the entire row for each screen is run from one query i imagine i should use an if() or decode()-like function?

or is there a more simple way to aggregate this information?
jhestyr
 
Posts: 6
Joined: Sat Mar 22, 2008 9:04 pm

Re: For Taxes Gross Winnings and Gross Losses

Postby jhestyr » Mon Jul 28, 2008 6:50 pm

After reviewing the db schema it doesnt look like you can differentiate between the hero contributed amount and the pot amount. is this correct?

The HUD is able to show winnings by player after the hand is over. does it do this but real-time reading the hand history or are there any aggregated fields for this available in the current schema?
jhestyr
 
Posts: 6
Joined: Sat Mar 22, 2008 9:04 pm

Re: For Taxes Gross Winnings and Gross Losses

Postby WhiteRider » Tue Jul 29, 2008 3:55 am

I think you are looking for:
holdem_hand_player_detail.amt_bet_ttl
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