I need to specify position for that list of player how do I do that?tourney_hand_player_statistics.id_hand IN (SELECT thps.id_hand FROM tourney_hand_player_statistics thps, player p WHERE thps.id_player=p.id_player AND (p.player_name = 'villain1 or p.player_name = 'villain2'))
I also know that I can set my position (BU=0 for example) by adding outside of the first expression
and tourney_hand_player_statistics.position = 0
But it doesn't work for that list if I add same string inside the expression like that
tourney_hand_player_statistics.id_hand IN (SELECT thps.id_hand FROM tourney_hand_player_statistics thps, player p WHERE thps.id_player=p.id_player AND (p.player_name = 'villain1 or p.player_name = 'villain2' and tourney_hand_player_statistics.position = 9))
What I also need is to make a third player who is NOT from the list or is NOT me and is not on position = 9 or 0. How do I proceed?
My theory so far
tourney_hand_player_statistics.position = 0 and tourney_hand_player_statistics.id_hand IN (SELECT thps.id_hand FROM tourney_hand_player_statistics thps, player p WHERE thps.id_player=p.id_player AND (p.player_name = 'villain1' or p.player_name = 'villain2' and tourney_hand_player_statistics.position = 9)) and ((NOT me and NOT from the list) and tourney_hand_player_statistics.position = 8)