xdfcgi/queries/mleaderboard.sql

8 lines
268 B
SQL

select trank, idvalue, tvalue
from Cts_times, Cts_ranks
where trank = idrank and Cts_times.mapid = Cts_ranks.mapid and Cts_times.mapid = ?
order by trank
-- get full leaderboard of the map
-- aliases are not included because
-- not ever player has a registered alias.