Lurk
Active Member
- Joined
- Dec 4, 2017
- Messages
- 336
- Reaction score
- 48
I'm using [Znote AAC] Most powerful guilds (TFS 0.3/4 and 1.0) (https://otland.net/threads/znote-aac-most-powerful-guilds-tfs-0-3-4-and-1-0.209045/) (no table design) and tfs 0.4
the select query is
but this frags go away when players use an item that removes frags, for that and also frags look I created a new field
I've been trying without success to get frags_all from players instead of killers and player_killers
can anyone help me wit hthis query?
the select query is
SQL:
SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `killers` k LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id` LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id` LEFT JOIN `guild_ranks` gr ON `p`.`rank_id` = `gr`.`id` LEFT JOIN `guilds` g ON `gr`.`guild_id` = `g`.`id` WHERE `k`.`unjustified` = 1 AND `k`.`final_hit` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 0, 3;
frags_all
on players
I've been trying without success to get frags_all from players instead of killers and player_killers
can anyone help me wit hthis query?