How to retrieve player data from HM database?
Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Feb 2009
    Posts
    11

    Default How to retrieve player data from HM database?

    I'm browsing my HM database using pgAdmin III and can't understand if there's a way of retrieving statistics on a particular player (e.g. the number of recorder hands, VPIP, PFR, etc.)

    Has anyone been successful in retrieving such data (without, of course, running HM itself)?

    Any advice will be truly appreciated.

  2. #2
    *** HM3! *** fozzy71's Avatar
    Join Date
    Jun 2005
    Location
    HM Support
    Posts
    32,814

    Default

    You would need to use various SQL Queries, depending on what you are looking for. I personally have no SQL Query experience, so if you have some specific questions I would be glad to forward them to the developer.

  3. #3
    Junior Member
    Join Date
    Feb 2009
    Posts
    11

    Default

    I'm looking for a way to retrieve the following stats, given the player's name:
    - Number of hands
    These - from a particular position:
    - VP$IP
    - Call Open
    - PFR
    - 3-Bet
    Also:
    - Fold to 3B
    - Vs Steal (% of Fold/Call/3Bet from SB/BB)

    If there's any sort of a guide to SQL queries for the above and/or other stats, I'd really appreciate access to it. I'd hate to bother the developer too much :-)

  4. #4
    Administrator Rvg72's Avatar
    Join Date
    Jul 2008
    Posts
    3,056

    Default

    There is a flag in the holdemmanager.config file named LogDatabaseCommands - set this to True. Then all queries will be saved to a dbtrace.log file in your logs folder.

    So after setting this, launch HM and go to the Players Tab and run the
    default report and you will see the query that is used to grab all of the
    default report data.

    You can trim down the where clause to remove fields that you do not need and then add a "where player_ID = (select player_Id from players where playername = 'ABCDEF')"

    Roy

  5. #5
    Junior Member
    Join Date
    Feb 2009
    Posts
    11

    Default

    Thanks a lot, Roy!

  6. #6
    Junior Member
    Join Date
    Aug 2009
    Posts
    12

    Default

    Hi,

    I use this query for get data from all player in my db:

    PHP Code:
    SELECT 
     playername
    SUM(totalhands) AS HANDS,
    100.0*SUM(vpiphands)/SUM(totalhands) AS VPIP,
    100.0*SUM(pfrhands)/SUM(totalhands) AS PFR
    FROM 
      compiledplayerresults_month
      JOIN compiledresults_month 
          ON compiledplayerresults_month
    .compiledplayerresults_id compiledresults_month.compiledplayerresults_id
      JOIN players
          ON compiledresults_month
    .player_id players.player_id AND players.site_id=1
    WHERE compiledresults_month
    .totalplayedhands >= 1
    GROUP BY playername 

    but I want get "steal" value for every player I can get this value?

  7. #7
    Junior Member
    Join Date
    Aug 2009
    Posts
    12

    Default

    up

  8. #8
    HM Support netsrak's Avatar
    Join Date
    Feb 2009
    Location
    Germany
    Posts
    25,795

    Default

    I move your thread to the custom stats, you hopefully get an answer there.

Similar Threads

  1. Player Summary - No data in Holdem Manager
    By Erudito in forum Manager General
    Replies: 4
    Last Post: 10-19-2009, 04:59 PM
  2. Updated and no data comes up for any player now =/
    By yogi_bear in forum Manager General
    Replies: 3
    Last Post: 08-31-2009, 02:04 PM
  3. Had to re-install Windows - can i retrieve my data?
    By chip11 in forum Manager General
    Replies: 3
    Last Post: 08-14-2009, 03:46 PM
  4. Replies: 5
    Last Post: 02-05-2009, 06:45 PM
  5. Lost access to other player data
    By travisp33 in forum Manager General
    Replies: 5
    Last Post: 01-25-2009, 11:24 PM

Tags for this Thread

Posting Permissions

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