Query for Raise Flop

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

Query for Raise Flop

Postby TROM » Mon Sep 20, 2010 12:15 am

Please Help with first part of query for Raise Flop

Code: Select all
SELECT (case when (count(*)!=0) \
   then ( ( cast(sum(case when flg_f_first_raise then 1 else 0 end) as real) ) \
   /( cast(sum(case when flg_f_check then 1 else 0 end) \
   + sum(case when flg_f_first_raise then 1 else 0 end) as real)) \
   ) \
   else (-1) \
   end) as result \


i get some value from this query they are very simular to what I need but not very much
where is error in my query?
TROM
 
Posts: 57
Joined: Mon Jun 16, 2008 6:56 pm

Re: Query for Raise Flop

Postby WhiteRider » Mon Sep 20, 2010 3:23 am

What exactly are you trying to do? I guess this is something outside PT3?
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Query for Raise Flop

Postby TROM » Mon Sep 20, 2010 11:13 am

I need Raise Flop % like in pokertracker default stat Raise Flop
TROM
 
Posts: 57
Joined: Mon Jun 16, 2008 6:56 pm

Re: Query for Raise Flop

Postby kraada » Mon Sep 20, 2010 12:40 pm

If you run a report with just that statistic with logging enabled you'll be able to see the exact PostgreSQL query in the C:\Program Files\PokerTracker 3\PokerTracker.log file.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


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

Who is online

Users browsing this forum: No registered users and 0 guests