Hands that go to showdown that include a specific villain

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Hands that go to showdown that include a specific villain

Postby mishroom222 » Fri Sep 11, 2026 5:27 pm

Hi.

I am trying to build a hand report, where it includes all hands that:
- go to showdown
- include myself & a specific villain

I've done some googling and I've found this bit of code to use as an expression filter (where villain is replaced with the persons username) :

Code: Select all
cash_hand_player_statistics.id_hand in (SELECT chps.id_hand from cash_hand_player_statistics chps, player p where chps.id_player = p.id_player and p.player_name = 'villain')


But this includes all hands where villain was part of the ring, not necessarily betting in hands and going to showdown. Is there a way to narrow this down to only include hands where villain sticks until showdown?

Thanks
mishroom222
 
Posts: 2
Joined: Thu Sep 27, 2018 6:03 am

Re: Hands that go to showdown that include a specific villai

Postby Flag_Hippo » Sat Sep 12, 2026 6:36 am

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

Re: Hands that go to showdown that include a specific villai

Postby mishroom222 » Sun Sep 13, 2026 11:20 pm

Thanks! This worked :)
mishroom222
 
Posts: 2
Joined: Thu Sep 27, 2018 6:03 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 1 guest