Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2007, 04:00 PM
joker122 joker122 is offline
Senior Member
 
Join Date: Dec 2003
Location: raising for information again
Posts: 5,504
Default PokerTracker/Excel help needed

Is there any way to break down my PokerTracker results into *days*? Specifically, I'd like to export my daily results to an Excel spreadsheet just like I can export my results per session using the 'session notes' tab.

I asked the PokerTracker forum but Pat said pokertracker itself had no function that would do this, but I still think Excel might somehow be able to do it just from exported sessions. Any ideas? Thanks alot.
Reply With Quote
  #2  
Old 02-26-2007, 09:36 PM
joker122 joker122 is offline
Senior Member
 
Join Date: Dec 2003
Location: raising for information again
Posts: 5,504
Default update

so Pat also says,
"You could probably use Excel to sum up the totals by day but I'm not all that familiar with Excel. There isn't anything in PT that shows totals by "day" just by session so you wouldn't be able to export from PT. If you have any SQL experience a database query could probably be written to do this as well."

Does anyone know where i can learn about SQL?
Reply With Quote
  #3  
Old 02-26-2007, 11:16 PM
_dave_ _dave_ is offline
Senior Member
 
Join Date: Feb 2005
Location: UK
Posts: 2,628
Default Re: update

[ QUOTE ]
Does anyone know where i can learn about SQL?

[/ QUOTE ]

Not a trivial thing to learn, but if you are keen, you won't go far wrong reading through this:

http://www.postgresql.org/docs/8.2/interactive/sql.html

What is it you want? just a net won/loss by date?

dave.
Reply With Quote
  #4  
Old 02-26-2007, 11:39 PM
joker122 joker122 is offline
Senior Member
 
Join Date: Dec 2003
Location: raising for information again
Posts: 5,504
Default Re: update

[ QUOTE ]
What is it you want? just a net won/loss by date?

[/ QUOTE ]

precisely.
Reply With Quote
  #5  
Old 02-26-2007, 11:44 PM
_dave_ _dave_ is offline
Senior Member
 
Join Date: Feb 2005
Location: UK
Posts: 2,628
Default Re: update

[ QUOTE ]
[ QUOTE ]
What is it you want? just a net won/loss by date?

[/ QUOTE ]

precisely.

[/ QUOTE ]

Shouldn't be too tricky, gimme a day or two, I'll have the SQL for ya [img]/images/graemlins/smile.gif[/img]

dave.
Reply With Quote
  #6  
Old 02-27-2007, 01:52 AM
joker122 joker122 is offline
Senior Member
 
Join Date: Dec 2003
Location: raising for information again
Posts: 5,504
Default Re: update

[ QUOTE ]
[ QUOTE ]
[ QUOTE ]
What is it you want? just a net won/loss by date?

[/ QUOTE ]

precisely.

[/ QUOTE ]

Shouldn't be too tricky, gimme a day or two, I'll have the SQL for ya [img]/images/graemlins/smile.gif[/img]

dave.

[/ QUOTE ]

awesome! thanks alot!
Reply With Quote
  #7  
Old 02-27-2007, 10:16 AM
Doink13 Doink13 is offline
Member
 
Join Date: Feb 2007
Posts: 33
Default Re: update

Learning and using SQL to accomplish your need is akin to taking on Nuclear physics cause your a lil chilly [img]/images/graemlins/wink.gif[/img]

Export delimited anything and Excel can read it. Once in Excel, fool around with the pivot tables. This should take all of < 30 minutes.
Reply With Quote
  #8  
Old 02-27-2007, 03:41 PM
TheIrishThug TheIrishThug is offline
Senior Member
 
Join Date: Jan 2005
Location: Belligerent and numerous
Posts: 1,819
Default Re: update

Doink, I think you are overstating the complexity of SQL a little. The tutorial at w3schools can get you through most of the basic.

But yeah, with dave working on the task, you don't really need to worry.
Reply With Quote
  #9  
Old 03-02-2007, 09:25 PM
Doink13 Doink13 is offline
Member
 
Join Date: Feb 2007
Posts: 33
Default Re: update

Maybe just a little.

Ofcourse it's the same question, do you want the data, or do you want to learn how to get the data.

Bottom line is he could have his data in <60 minutes with export and crosstabs.

However, if he wants to learn SQL, create SQL, run SQL, get data.... may take a little longer. [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #10  
Old 03-05-2007, 09:34 PM
_dave_ _dave_ is offline
Senior Member
 
Join Date: Feb 2005
Location: UK
Posts: 2,628
Default Re: update

[ QUOTE ]

But yeah, with dave working on the task, you don't really need to worry.

[/ QUOTE ]

Lol, unless I totally forget of course [img]/images/graemlins/blush.gif[/img]

Just been reminded via PM from the OP - sorry.

This seems to do the trick:

copy/paste into PGAdmin III's "Query Tool".

Obviously replace _dave_ with your screenname (the primary one, if you use aliases). And change the starting date as desired.

<font class="small">Code:</font><hr /><pre>

SELECT date_trunc('day', g.date_played) as Day, SUM( (gp.total_won - gp.total_bet) ) AS Winnings
FROM game g, game_players gp
WHERE gp.player_id = (SELECT player_id FROM players WHERE screen_name = '<font color="blue">_dave_</font>')
AND g.date_played &gt;= '<font color="blue">01-Feb-2007</font>'
AND gp.game_id = g.game_id
GROUP BY Day
ORDER BY Day ASC;

</pre><hr />

run it with the green "Play" button, check it looks OK, then do "File -&gt; Export" and save the results as a CSV file - you can then open this in Excel and do whatever [img]/images/graemlins/smile.gif[/img]

Enjoy,

dave.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.