![]() |
|
#10
|
||||
|
Quote:
You could certainly do something like the following: select class, count(distinct player) from players where level > 5 group by class Furthermore, you could (I assume) filter based on last login: Code:
select p.class, count(distinct p.player) from players p left outer join accounts a on p.account_id == a.account_id where p.level > 5 and now() < adddate(a.last_login, interval 7 day) group by p.class This is all based on data I would expect to be available. There's probably a better way of representing someone's "activity" level, but without knowing the schema it's pretty hard to speculate on.
__________________
Kruall - Troll Shaman
Ferok - Dwarf Warrior | |||
|
Last edited by Ferok; 03-30-2010 at 04:00 PM..
Reason: code tags
|
|
|||
|
|