Filter for hands with between x and y players

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

Filter for hands with between x and y players

Postby maxp1981 » Wed Mar 05, 2008 2:27 pm

Alright, so I do a report to generate a SQL.statement. But somehow i am missing a filter for players involved in the hand, where can I find it. Or how to change the SQL to filter for that ?

Thanks in advance

Max
maxp1981
 
Posts: 9
Joined: Thu Feb 28, 2008 11:54 am

Re: Filter for hands with between x and y players

Postby APerfect10 » Wed Mar 05, 2008 2:44 pm

The information that you need is in the 'holdem_hand_summary' table and the field is 'cnt_players'

So your where clause would be:

WHERE ... (holdem_hand_summary.cnt_players >= X AND holdem_hand_summary.cnt_players <= Y)

Best regards,

Derek
APerfect10
Site Admin
 
Posts: 4489
Joined: Sat Dec 08, 2007 6:03 pm

Re: Filter for hands with between x and y players

Postby APerfect10 » Wed Mar 05, 2008 2:45 pm

One little tip, if you ever need to know the SQL of a PokerTracker window or filter, you can view it in the PokerTracker.log file located in your main PokerTracker 3 directory...

Best regards,

Derek
APerfect10
Site Admin
 
Posts: 4489
Joined: Sat Dec 08, 2007 6:03 pm


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

Who is online

Users browsing this forum: No registered users and 0 guests