by Kevweiser » Thu Dec 18, 2008 2:33 pm
I've been trying make a conditional statement to test if a hand has occured in the last 15 minutes... However, I am unable to construct a valid SQL statement. I've just been playing around with holdem_hand_player_statistics.date_played and holdem_table_session_summary.date_end. I really have no idea how to use them in "If then" statements. I've tried the following and it is not valid.
sum(if[holdem_table_session_summary.date_end - holdem_hand_player_statistics.date_played) > 15, 1, 0])
How do I use timestamps in expressions? What kind of operators can be used on them?