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
by locoroco » Mon Sep 20, 2010 8:49 pm
Is there a way that i can get reports on all the players at my table and filter out other players?
Like this:
PFR AF etc
Player 1 10 2
Player 2 30 3.1
Player 3 20 0.6
I would really like a filter that removes everyone that isn't playing at my table, but I haven't figured out how to do it.
-
locoroco
-
- Posts: 10
- Joined: Thu Jun 19, 2008 7:21 am
by kraada » Tue Sep 21, 2010 9:35 am
If you use the following filter the report will show for all players who have been dealt into hands that were imported within the past 5 minutes:
player.id_player in (SELECT p.id_player from player p, holdem_hand_player_statistics hhps, holdem_hand_summary hhs where hhs.id_hand = hhps.id_hand and hhps.id_player = p.id_player and hhs.date_imported + interval '5 minutes' >= now())
-
kraada
- Moderator
-
- Posts: 54430
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
Return to Custom Stats, Reports, and SQL [Read Only]
Users browsing this forum: No registered users and 0 guests