Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators
SELECT (player.player_name_search) AS "str_player_name_search",
(player.id_site) AS "id_site_player",
(
sum((
CASE
WHEN (cash_hand_player_statistics.id_hand > 0)
THEN 1
ELSE 0
END
))
) AS "cnt_hands",
(
sum((
CASE
WHEN (
cash_hand_player_statistics.flg_p_3bet
AND EXISTS (
SELECT 1
FROM cash_hand_player_statistics hero
WHERE hero.id_hand = cash_hand_player_statistics.id_hand
AND hero.flg_hero
AND hero.flg_p_first_raise
)
)
THEN 1
ELSE 0
END
))
) AS "cnt_p_3bet_vs_hero",
(
sum((
CASE
WHEN (
cash_hand_player_statistics.flg_p_3bet_opp
AND EXISTS (
SELECT 1
FROM cash_hand_player_statistics hero
WHERE hero.id_hand = cash_hand_player_statistics.id_hand
AND hero.flg_hero
AND hero.flg_p_first_raise
)
)
THEN 1
ELSE 0
END
))
) AS "cnt_p_3bet_opp_vs_hero"
FROM cash_limit,
cash_hand_player_statistics,
player
WHERE (player.id_player = cash_hand_player_statistics.id_player)
AND (cash_limit.id_limit = cash_hand_player_statistics.id_limit)
AND (
(
(cash_limit.flg_nl = true)
AND (cash_limit.flg_lo = false)
)
AND (
((cash_hand_player_statistics.id_gametype = 1))
AND (
cash_hand_player_statistics.id_player IN (
SELECT (
CASE
WHEN (p.id_player_alias <> 0)
THEN p.id_player_alias
ELSE p.id_player
END
)
FROM player p
WHERE (
(
p.id_site = 100
AND p.player_name_search = E 'b'
)
OR (
p.id_site = 100
AND p.player_name_search = E 'e'
)
OR (
p.id_site = 100
AND p.player_name_search = E 'm'
)
OR (
p.id_site = 100
AND p.player_name_search = E 't'
)
OR (
p.id_site = 100
AND p.player_name_search = E 'j'
)
)
)
)
)
)
GROUP BY (player.player_name_search),
(player.id_site)
Return to Custom Stats, Reports and HUD Profiles
Users browsing this forum: No registered users and 44 guests