query has stopped working...
Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Sep 2008
    Posts
    1

    Default query has stopped working...

    This query used to work but recently stopped working. Presumably with the an upgrade. It now returns 0 rows.

    SELECT playername, sum(totalhands), sum(vpiphands), sum(pfrhands)
    FROM compiledplayerresults
    JOIN compiledresults
    ON compiledplayerresults.compiledplayerresults_id = compiledresults.compiledplayerresults_id
    JOIN players
    ON compiledresults.player_id = players.player_id
    GROUP BY playername
    HAVING sum(totalhands) >= 100

    Do you know how I can rewrite the query to make it work with the updated HM?

  2. #2
    Junior Member
    Join Date
    Sep 2008
    Posts
    3

    Default

    I guess this is what you are looking for:

    Code:
    SELECT 
      playername, SUM(totalhands), SUM(vpiphands), SUM(pfrhands)
    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
    WHERE compiledresults_month.totalplayedhands >= 100
    GROUP BY playername

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

    Default

    yes thanks, add a _month to every compiled results table name and it will work (and be way faster)

    Roy

  4. #4
    Junior Member
    Join Date
    Dec 2008
    Posts
    3

    Default

    Does this _month postfix limit the hands/results to the last month or why did the developers call it _month?

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

    Default

    we eliminated the use of the non _month tables due to performance reasons. The _month tables work the same way as before though and stats correspond to a single month (not just last month)

  6. #6
    Member
    Join Date
    Aug 2008
    Posts
    77

    Default Trying to understand the compiled results tables

    1) You indicated I can "DROP" the following tables...

    compiledplayerresults
    compiledplayerresultspositionaction
    compiledresults
    postflopactions

    and leave the cooresponding *_month tables. Correct? (I'll backup first!)

    2) In pgAdminIII when I click the spreadsheet button (view the data in selected object) it, by default, gets ALL rows. Any way to permanently change the default? (off topic question )

    3) compiledplayerresults_month has the most current up-to-date stats with 1 row per gametype & month & number of opponents?
    4) and I need to look in compiledresults_month to match player_id with the correct compiledplayerresults_id(s)?

    5) I have a lot of players with 0 hands playerd. I assume they are very old SNG opponents. Can I delete them?
    0 hands = Select *from playerhandscashkeycolumns where player_id = $row_Players['player_id']
    (Obviously the compiled tables will be a faster way to determine 0 hands, once I figure out how the compiled tables work. lol)

    Thanks!

    ----------------------Kitty

Similar Threads

  1. SQL query
    By pelerin in forum Manager General
    Replies: 12
    Last Post: 01-19-2013, 06:13 PM
  2. HUD stopped working on stars... Again...
    By mikewvp in forum Manager General
    Replies: 11
    Last Post: 06-16-2009, 03:30 AM
  3. Holdem manager has stopped working...
    By chriti04 in forum Manager General
    Replies: 8
    Last Post: 01-27-2009, 03:31 PM
  4. importing/hud stopped working
    By thegreatjohan in forum Manager General
    Replies: 18
    Last Post: 09-12-2008, 04:06 PM
  5. Popup stopped working.
    By Grim in forum Manager General
    Replies: 1
    Last Post: 09-05-2008, 06:46 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
  •