Poker Software
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Oct 2008
    Location
    weaktight.com
    Posts
    37

    Default Converting PT2 queries

    I'm looking to convert some PT2 queries and make them work for HEM. There doesn't seem to be a table similar to PT2's session table.

    How do I list all the players who played and their winnings at a table over a certain time (ie when I played):
    Code:
    SELECT DISTINCT screen_name, session_id, p.player_id, game_level_desc, amount_won FROM session s
                inner join game_players gp using (session_id)
                inner join game_level using(game_level_id) 
                inner join players p on gp.player_id=p.player_id
                WHERE table_name='{table}' and session_end> TIMESTAMP'{start}' and session_start< TIMESTAMP'{end}'
                ORDER BY amount_won DESC
                limit 60

  2. #2
    Member
    Join Date
    Oct 2008
    Location
    weaktight.com
    Posts
    37

    Default

    I'm using the pokerhandscashkeycolumns table for this... I guess the concept of "session" is quite different. I'd like to be able to filter these stats by session. Right now I'm just filtering them based on the handtimestamp field. Any suggestions for working in the table's table?

Similar Threads

  1. grouping players together for queries/reports
    By Loki_98 in forum Manager General
    Replies: 1
    Last Post: 09-01-2008, 12:30 PM
  2. SQL Queries
    By Diceman in forum Manager General
    Replies: 2
    Last Post: 07-25-2008, 08:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •