mranks.sql 254 B

123456789
  1. select Cts_ranks.mapid, max(trank), min(tvalue), alias
  2. from Cts_ranks, Cts_times, Id2alias
  3. where Cts_ranks.mapid = Cts_times.mapid
  4. and tvalue != 0
  5. and cryptokey = idvalue
  6. and idrank = 1
  7. group by Cts_ranks.mapid
  8. order by count(trank) DESC;