Format Expression: Table ID -> Table Name

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

Format Expression: Table ID -> Table Name

Postby Farnemo » Tue Jun 14, 2011 5:51 pm

Hello.

I created a holdem cash hand report where I can see all my single hands listed that I have played during a multi-table session. Since there is no column for the table name in the holdem cash hand section, I tried to create one in order to be able to see which hand has been played at which table.
For the columns expression I inserted id_table from the database fields tab under holdem_hand_summary. The complete expression is 'holdem_hand_summary.id_table'.
This works for the report but obviously I wanted the true table names to be displayed instead the ID numbers but unfortunately I haven't figured what to insert in the format expression box to see the real tables names where the single hands have been played on.
I tried to make it work with the lookup_from_id function but couldn't find a matching and valid expression for it.
I hope someone can help me out with my tiny problem. I already invested several hours today to get familiar with the whole custom stats and reports tool but couldn't find a solution how to format the table id into the table name in the holdem cash hand section for my report.

Regards,
Farnemo
Farnemo
 
Posts: 4
Joined: Fri Sep 26, 2008 2:56 am

Re: Format Expression: Table ID -> Table Name

Postby kraada » Tue Jun 14, 2011 6:51 pm

The field you want is holdem_table.table_name, unfortunately creating a custom stat from it in that section does not appear to be working properly (the query generator is not creating the proper join) at this point in time, but I'll let the development team know about the issue for you so that we can get this working in a future release.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Format Expression: Table ID -> Table Name

Postby Farnemo » Wed Jun 15, 2011 11:57 am

Thanks for your quick reply.

I should have mentioned that I first tried to make it work with holdem_table.table_name but when I figured that it wasn't working, I assumed that it works for session statistics only and not for single hand statistics.
Thats why I tried to find a different way to make the column work the way I wanted it to and eventually found out that it works with the table id.

Well at least I can distinguish the tables from each other by the ids, that'll have to do until it is fixed.

Regards,
Farnemo
Farnemo
 
Posts: 4
Joined: Fri Sep 26, 2008 2:56 am


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

Who is online

Users browsing this forum: No registered users and 0 guests