by damncute » Wed Jan 08, 2014 3:33 pm
Thanks again, kraada. Great!!
sum(if[cash_hand_summary.id_site=900 AND cash_hand_player_statistics.date_played <= 'January 07 2014'::timestamp,(((cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 0.38)), if[cash_hand_summary.id_site=900 AND cash_hand_player_statistics.date_played >= 'January 08 2014'::timestamp,(((cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 0.18)),0]])
Expression is fine now and I don't get any error. But, now it always takes the 18%, even for hands before 08 January. What did I miss here? Maybe something wrong with the timestamp?