Filter colluded players

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Re: Filter colluded players

Postby 4StarGen » Thu Jul 03, 2025 5:35 am

Sry to bother you again, I'm playing with the expression filter and I'm getting multiple entries of the same hand (I know why, since every hand is store from every player perspective), is there are way to avoid this? Maybe a select distinct stament?
Attachments
Screenshot 2025-07-03 113233.png
(31.38 KiB) Downloaded 1156 times
4StarGen
 
Posts: 1020
Joined: Sat Mar 08, 2014 6:58 am

Re: Filter colluded players

Postby Flag_Hippo » Thu Jul 03, 2025 5:56 am

You can turn on the 'Filter On Active Player' option. Alternatively you can filter for a specific player or position (the BB for example) using built-in filters or within the expression filter. For example this would filter for the hands from Heros perspective only:

Code: Select all
cash_hand_player_statistics.flg_hero and cash_hand_player_statistics.id_hand in (SELECT chps.id_hand from cash_hand_player_statistics chps, player p where chps.flg_p_first_raise and chps.flg_p_open_opp and chps.id_player = p.id_player and p.player_name = 'Villain')
Flag_Hippo
Moderator
 
Posts: 17080
Joined: Tue Jan 31, 2012 7:50 am

Re: Filter colluded players

Postby 4StarGen » Thu Jul 03, 2025 6:01 am

Thanks a lot, I will give it a try.

I've also tried to modify the query and add

Code: Select all
FROM ....,cash_hand_summary

WHERE cash_hand_summary.str_aggressors_p LIKE '898%'


but for some reason, str_aggressors_p is ignored
4StarGen
 
Posts: 1020
Joined: Sat Mar 08, 2014 6:58 am

Re: Filter colluded players

Postby Flag_Hippo » Thu Jul 03, 2025 6:42 am

That doesn't need to be a subquery:

Code: Select all
cash_hand_player_statistics.flg_hero and cash_hand_summary.str_aggressors_p LIKE '898%' and cash_hand_player_statistics.id_hand in (SELECT chps.id_hand from cash_hand_player_statistics chps, player p where chps.flg_p_first_raise and chps.flg_p_open_opp and chps.id_player = p.id_player and p.player_name = 'Villain')
Flag_Hippo
Moderator
 
Posts: 17080
Joined: Tue Jan 31, 2012 7:50 am

Previous

Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 6 guests