Project 1999

Go Back   Project 1999 > Blue Community > Blue Server Chat

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 03-30-2010, 03:24 PM
Rabkorik Rabkorik is offline
Scrawny Gnoll


Join Date: Mar 2010
Posts: 27
Default

Quote:
Originally Posted by Ferok [You must be logged in to view images. Log in or Register.]
select class, count(distinct player) from players group by class
This is a very complex sql statement!
  #2  
Old 03-30-2010, 03:30 PM
karsten karsten is offline
Planar Protector

karsten's Avatar

Join Date: Oct 2009
Posts: 1,892
Default

so, it'd be easy to do? wouldn't it be skewed data though due to peoples' playtimes not being represented, just character levels? also, wouldn't the data be skewed towards level 1s? if good data were easy to get i'd say let's go for it
__________________
Noah, the Loincloth Hero
Ogre High Jump Champion 2019
  #3  
Old 03-30-2010, 03:44 PM
Ferok Ferok is offline
Fire Giant


Join Date: Mar 2010
Location: Long Island, NY
Posts: 521
Send a message via AIM to Ferok
Default

Quote:
Originally Posted by karsten [You must be logged in to view images. Log in or Register.]
so, it'd be easy to do? wouldn't it be skewed data though due to peoples' playtimes not being represented, just character levels? also, wouldn't the data be skewed towards level 1s? if good data were easy to get i'd say let's go for it
That's the rub.

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
which would give you (minus some syntax and obviously the fact that I'm taking a shot in the dark at the schema) players over level 5 whose accounts have been active in the past week.

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
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:17 AM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.