by pasita » Sun Jul 29, 2012 9:07 am
You had aliases across sites?
When I create a one player report with default stats my alias is still shown across multiple rows. This is the query in PT4 log, not sure why you select the site:
SELECT (cash_hand_player_statistics.id_player) as "id_player", (player_real.id_site) as "id_site", (player.player_name) as "str_player_name", (sum(CAST( (cash_hand_player_statistics.val_curr_conv * cash_hand_player_statistics.amt_won) AS numeric ))) as "amt_won_curr_conv", (sum((case when(cash_hand_player_statistics.id_hand > 0) then 1 else 0 end))) as "cnt_hands" FROM cash_hand_summary, cash_hand_player_statistics , player, player player_real WHERE (player.id_player = cash_hand_player_statistics.id_player) AND (player_real.id_player = cash_hand_player_statistics.id_player_real) AND (cash_hand_player_statistics.id_player = (SELECT id_player FROM player WHERE player_name_search='myaliashere' AND id_site='1100')) AND (cash_hand_summary.id_hand = cash_hand_player_statistics.id_hand) AND (((cash_hand_summary.id_gametype in(1))AND (cash_hand_player_statistics.id_limit in (SELECT id_limit FROM cash_limit WHERE flg_nlpl=false) ))) GROUP BY (cash_hand_player_statistics.id_player), (player_real.id_site), (player.player_name)
The same happens if the only stat in the report is "Player".
But if I use "Player (short)" it no longer groups by site. So seems there's a way around the problem.