SUBSTRING ?

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

SUBSTRING ?

Postby stuart_gall » Thu Mar 25, 2010 7:33 am

Hello,
Reading the Custom stats and reports guide. There is a SUBSTRING function mentioned.
This function does not seem to work in Column or Statistic. And it is not listed when I click the INSERT button.

Does it Exist or not ?


Stuart.
stuart_gall
 
Posts: 61
Joined: Mon Mar 22, 2010 7:46 am

Re: SUBSTRING ?

Postby kraada » Thu Mar 25, 2010 9:25 am

It worked last I checked. You want to use it inside another statistic and something like: substring(lookup_actions_r.action from 1 for 1) = 'C' will match times a player's first river action is call (and anything else may or may not happen afterwards).
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