SQL: finding elapsed time (excluding breaks) in a tournament

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

SQL: finding elapsed time (excluding breaks) in a tournament

Postby adfhsdgf » Sat Aug 20, 2011 8:21 am

Hi.

Is it possible to calculate elapsed time for a tournament hand?

something like this: tourney.date_start - hand.date_played - (time wasted on breaks????)
so the the elapsed time would always match the blind level.

thanks
adfhsdgf
 
Posts: 4
Joined: Sat Aug 20, 2011 8:05 am

Re: SQL: finding elapsed time (excluding breaks) in a tourna

Postby WhiteRider » Sat Aug 20, 2011 8:32 am

No information is stored about breaks so that exact thing isn't possible.
What are you trying to do, exactly? There may be another way around it..
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: SQL: finding elapsed time (excluding breaks) in a tourna

Postby adfhsdgf » Sat Aug 20, 2011 9:14 am

I'm just trying to graph some stuff vs time played.

How about subtracting 5 min break(s) if the elapsed time(date_start - date_played) doesn't match the current blind level? How exact would this be? And I'm talking about PokerStars. Can a 5 min break be > 5 min? Do I also need to take into account the time when players are waiting to go on break? I mean Is the level time running when tables are waiting for the break or not?

I think an other solution would be to calculate average time spent on breaks in a tournament type and use this.
Something like this: elapsed_time_real = elapsed_time * (tourney_duration - avg_time_spent_on_breaks) / tourney_duration
Then i need to figure out how to find correct average break time.
adfhsdgf
 
Posts: 4
Joined: Sat Aug 20, 2011 8:05 am

Re: SQL: finding elapsed time (excluding breaks) in a tourna

Postby WhiteRider » Sat Aug 20, 2011 10:36 am

It varies from site to site but in most cases I think the break time will begin after the current hand finishes on every table. Therefore you will have some delay for each break. I don't think you'll be able to get it exact but the difference shouldn't be too significant.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: SQL: finding elapsed time (excluding breaks) in a tourna

Postby adfhsdgf » Sat Aug 20, 2011 11:38 am

Alright, thank you. I have almost figured it out. Sometimes I just like to confuse myself :p
adfhsdgf
 
Posts: 4
Joined: Sat Aug 20, 2011 8:05 am

Re: SQL: finding elapsed time (excluding breaks) in a tourna

Postby WhiteRider » Sat Aug 20, 2011 12:20 pm

Join the club! :)
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests