Advertisement
Guest User

MySQL Script for Statistic

a guest
Mar 31st, 2016
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.36 KB | None | 0 0
  1. select
  2.     ac.name,
  3.     ac.kills,
  4.     ac.deaths,
  5.     count(ki.killer_uid) as 'count of kill',
  6.     max(ki.distance) as 'max of dist',
  7.     (select kil.weapon from kills kil where kil.distance = max(ki.distance) limit 1) as 'weapon'
  8. from
  9.     account ac
  10.     join kills ki on (ac.uid = ki.killer_uid)
  11. where
  12.     NOT (ki.killer_uid = 'Admin UUID' )
  13. group by
  14.     ki.killer_uid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement