a question about substring
Posted: Thu Jun 21, 2012 9:06 am
This is the definition of a built in column named: cnt_f_donk_def_opp_action_fold
sum(if[lookup_actions_p.action LIKE '%R' AND tourney_hand_player_statistics.amt_f_bet_facing > 0 AND NOT (tourney_hand_player_statistics.flg_f_open_opp) AND substring(lookup_actions_f.action from 1 for 1) = 'F', 1, 0])
Why is substring used here? Wouldn't it mean the same if we used: lookup_actions_f.action LIKE 'F'?
sum(if[lookup_actions_p.action LIKE '%R' AND tourney_hand_player_statistics.amt_f_bet_facing > 0 AND NOT (tourney_hand_player_statistics.flg_f_open_opp) AND substring(lookup_actions_f.action from 1 for 1) = 'F', 1, 0])
Why is substring used here? Wouldn't it mean the same if we used: lookup_actions_f.action LIKE 'F'?