Earned ongame points in sessions

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

Earned ongame points in sessions

Postby lmx2k5 » Sun Aug 17, 2008 12:25 pm

anyone has report for Ongame points earned for each played session?

Can u point me into direction how to create it (which section at least) ?
lmx2k5
 
Posts: 25
Joined: Tue Mar 25, 2008 10:31 am

Re: Earned ongame points in sessions

Postby WhiteRider » Sun Aug 17, 2008 1:07 pm

If you want to do it per session you would use the section 'holdem cash session', but to get an overall figure you would use 'holdem cash player statistics'.

There are a few Custom Stats for this kind of thing for other sites floating around, have a look in the Repository. I think there is one for Full Tilt rakeback which would give you a good start.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Earned ongame points in sessions

Postby lmx2k5 » Sun Aug 17, 2008 1:31 pm

thanks, I will give it a try
lmx2k5
 
Posts: 25
Joined: Tue Mar 25, 2008 10:31 am

Re: Earned ongame points in sessions

Postby lmx2k5 » Sun Aug 17, 2008 1:46 pm

I think I need holdem cash session, but for ongame I need only to count those hands, where rakeback is at least 0.1$ and include pot player was involved, not only winning. So i feel that I need to sum amt_rake in holdem_hand_summary table for session
lmx2k5
 
Posts: 25
Joined: Tue Mar 25, 2008 10:31 am

Re: Earned ongame points in sessions

Postby WhiteRider » Sun Aug 17, 2008 1:56 pm

OK, that sounds good.
If you want to count the hands where the rake is over 10c, you should use the structure:
sum ( if[holdem_hand_summary.amt_rake > 0.1, 1, 0] )
..like most of the other statistic-type stats.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Earned ongame points in sessions

Postby lmx2k5 » Sun Aug 17, 2008 2:33 pm

I made simple stat, as you said, added some stats like table name to report, but when I run report I got error:
Reason: Fatal Error (ERROR: column "holdem_table.table_name" must appear in the GROUP BY clause or be used in an aggregate function )

Any Ideas?
thanks
lmx2k5
 
Posts: 25
Joined: Tue Mar 25, 2008 10:31 am

Re: Earned ongame points in sessions

Postby WhiteRider » Sun Aug 17, 2008 3:04 pm

You're using section 'holdem cash session' in the Reports tab too, yes?
Does this happen if you don't add your new stat to the report?
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Earned ongame points in sessions

Postby lmx2k5 » Sun Aug 17, 2008 3:17 pm

yes, I am using "HOldem Cash Session" for report. It happens when I add any existing stat and my new stat.
also if I add only my field to report, there is nothing displayed
lmx2k5
 
Posts: 25
Joined: Tue Mar 25, 2008 10:31 am

Re: Earned ongame points in sessions

Postby WhiteRider » Sun Aug 17, 2008 3:24 pm

Try adding your stat to the Sessions tab's 'Sessions' report. Click the little wrench/spanner icon to the right of the report and double-click your stat.
Does that work?

I'll have a quick go at building your stat and see if I can get it to work..
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Earned ongame points in sessions

Postby lmx2k5 » Sun Aug 17, 2008 3:27 pm

adding to session tab results in same error.
May be I am missing something in Configure stats options?
lmx2k5
 
Posts: 25
Joined: Tue Mar 25, 2008 10:31 am

Next

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

Who is online

Users browsing this forum: No registered users and 2 guests