View Single Post
  #49  
Old 04-16-2010, 02:22 PM
dojo420 dojo420 is offline
Aviak


Join Date: Mar 2010
Posts: 53
Default

you could check for active characters for the last month by adding this to the "where"-clause:

AND (DATEDIFF(now(), character_.timelaston) < 30)

not sure about the exact timestamp type used for that field, but datediff should work with about any timestamp / time / date type.

...i think =/
__________________
Xenu / Shalaya

ɹỊɐ-ləq pəllɐɔ uʍoʇ ɐ ɟo əɔuỊɹd əɥʇ əɯɐɔəq I ʍoɥ noʎ lləʇ ll‚l
əɹəɥʇ ʇɥნỊɹ ʇỊs ʇsnỊ əʇnuỊɯ ɐ əʞɐʇ oʇ əʞỊl p‚I puɐ
uʍop əpỊsdn pəuɹnʇ ´pəddỊlɟ ʇoნ əɟỊl
ʎɯ ʍoɥ ʇnoqɐ llɐ ʎɹoʇs ɐ sỊ sỊɥʇ ʍoN