• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Query] Elf War System - Getting the top fraggers and top noob (who died more)

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,764
Solutions
1
Reaction score
227
Location
Chile, Santiago
Hey there, I have been trying to do somehow to get the top fragger and the top noob of a war, showing like
Top Fragger: Player Name (Frags/Deaths)
Top Noob: Player Name (Frags/Deaths)

But it is really complex since it has a lot of inner join and left join and couldn't manage how to do it... Could any one help on this?

PS: Here I could get all the deaths of a war:

Code:
SELECT * FROM `players` WHERE players.id in (select player_deaths.player_id from player_deaths inner join guild_kills on guild_kills.death_id = player_deaths.id inner join guild_wars on guild_wars.id = guild_kills.war_id where guild_wars.id = 52)
 
Back
Top