Notes - Report / Stat

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

Notes - Report / Stat

Postby zerozero » Thu Feb 19, 2009 1:18 pm

I like to have an overview about all players with player-notes in my db.

First I created a stat "PlayerNotes" (=notes.notes) in the 'holdem cash player statistics' and added the stat to the "Summary -> Player Summary"-tab, but it didn't work.
Second I tried to create a stat, that simply checks if there is a player note (if[holdem_hand_player_detail.flg_note AND notes.enum_type=p, 1,0] but it didn't work, too.
:(

Maybe someone could help and creates a working stat for the summary, or a report which filters the players with player-notes?
(only player-notes, not session- or hand-notes)
Any help would be greatly appreciated!
zerozero
 
Posts: 62
Joined: Thu May 08, 2008 6:56 pm

Re: Notes - Report / Stat

Postby kraada » Thu Feb 19, 2009 3:24 pm

Using the holdem_hand_player_detail table won't get you what you're looking for. You want your column to be:
if[player_real.flg_note, 1, 0]

It will have a value of 1 for players with notes, and 0 for players without notes. You should then be able to create a report using this column as a filter and it should work properly.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Notes - Report / Stat

Postby zerozero » Fri Feb 20, 2009 12:59 am

kraada wrote:Using the holdem_hand_player_detail table won't get you what you're looking for. You want your column to be:
if[player_real.flg_note, 1, 0]


Thank you for help, this works properly! :)
(Now I'm able to copy player-notes manually from db to db as long as there is no notes export/import-feature)
zerozero
 
Posts: 62
Joined: Thu May 08, 2008 6:56 pm

Re: Notes - Report / Stat

Postby zerozero » Fri Feb 20, 2009 1:05 am

*twice posted*
zerozero
 
Posts: 62
Joined: Thu May 08, 2008 6:56 pm

Re: Notes - Report / Stat

Postby kraada » Fri Feb 20, 2009 11:36 am

We do hope that the note export will be coming soon, though, for what that's worth.
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 3 guests