Browse Source

Extended mranks to include best time and by which player.

master
3 years ago
parent
commit
fe5265e24b
1 changed files with 15 additions and 4 deletions
  1. 15
    4
      queries/mranks.sql

+ 15
- 4
queries/mranks.sql View File

@@ -1,4 +1,15 @@
select mapid, max(idrank)
from Cts_ranks
group by mapid
order by max(idrank);
select Cts_ranks.mapid, max(trank), min(tvalue), alias
from Cts_ranks, Cts_times, Id2alias
where Cts_ranks.mapid = Cts_times.mapid
and tvalue != 0
and cryptokey = idvalue
and idrank = 1
group by Cts_ranks.mapid
order by max(idrank);

-- Get map name, number of records, best time, player with the best time.
-- top player per map:

-- select mapid, alias
-- from Id2alias, Cts_ranks
-- where cryptokey = idvalue and idrank = 1

Loading…
Cancel
Save