hours variable

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

hours variable

Postby uNGam3R » Wed Aug 18, 2010 11:04 am

Hi,

I want to extract the hours in the stats, I found date_played but this variable represents the Date & Hours in this format : "2010/08/18 16:40".
Is it possible to only extract the hours ? 16 in this example. I need this to make an accurate rakeback calculation (20% between 19h-23h, 30% otherwise).

Thanks,
Damien.
uNGam3R
 
Posts: 4
Joined: Wed Nov 12, 2008 6:52 pm

Re: hours variable

Postby kraada » Wed Aug 18, 2010 12:46 pm

Yes it's possible, for a report that does it see this thread.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


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

Who is online

Users browsing this forum: No registered users and 0 guests