kraada wrote:If you change what c is in my query you'll change the number of people who need to have a pair - the query I gave you was for hands with 2 or more people with pocket pairs. Change c >=2 to c >= 3 and you'll get hands with 3 or more pocket pairs, and so on.
For some reason, this one won't work:
holdem_hand_player_statistics.id_hand in (SELECT holdem_hand_player_statistics.id_hand, count(holdem_hand_player_statistics.id_player) as c from holdem_hand_player_statistics WHERE holdem_hand_player_statistics.id_holecard = 1 OR holdem_hand_player_statistics.id_holecard = 26 OR holdem_hand_player_statistics.id_holecard = 49 OR holdem_hand_player_statistics.id_holecard = 70 OR holdem_hand_player_statistics.id_holecard = 89 OR holdem_hand_player_statistics.id_holecard = 106 OR holdem_hand_player_statistics.id_holecard = 121 OR holdem_hand_player_statistics.id_holecard = 134 OR holdem_hand_player_statistics.id_holecard = 145 OR holdem_hand_player_statistics.id_holecard = 154 OR holdem_hand_player_statistics.id_holecard = 161 OR holdem_hand_player_statistics.id_holecard = 166 OR holdem_hand_player_statistics.id_holecard = 169 GROUP BY holdem_hand_player_statistics.id_hand HAVING c >= 2)
Invalid expression is the error. I'm guessing this is sql? I used to work with mysql & could read what the code was doing.. it looks right.. Maybe a error in "punctuation" or whatever it's called lol.. syntax.. like when you don't close a bracket