int in custom stats

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

Re: int in custom stats

Postby WhiteRider » Wed Nov 19, 2008 11:12 am

banshee wrote:I have problems with it though. One the one hand I can use substring in the columns section only and on the other hand substring(lookup_from_id(id_flop1, 'card_rank') from 2 for 1) is not a valid SQL statement :(


You cannot use the lookup_from_id function in the columns. It's not valid SQL, so it can only be used in the variables and the stat expressions.
WhiteRider
Moderator
 
Posts: 54017
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: int in custom stats

Postby banshee » Thu Nov 20, 2008 2:26 pm

yes, the problem with that is that I either need lookup_from_id in the columns section (because substring only works there) or substring in the stats section (because lookup_from_id just works there). Mutual exclusion I guess
banshee
 
Posts: 53
Joined: Thu May 08, 2008 6:10 am

Re: int in custom stats

Postby WhiteRider » Thu Nov 20, 2008 2:31 pm

I've mentioned this to the development team, and hopefully we will get substring available in the Stats tab at some point.
WhiteRider
Moderator
 
Posts: 54017
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Previous

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

Who is online

Users browsing this forum: No registered users and 11 guests

cron