Created
November 8, 2016 10:49
-
-
Save pustynnykh/9bd6e93a27485860f2e6f6c5d247b96f to your computer and use it in GitHub Desktop.
Unique users login count per day in specified period using login_history database table in Drupal 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT FROM_UNIXTIME(login, '%Y/%m/%d') AS dates, count(distinct(uid)) as theCount | |
FROM login_history | |
WHERE login BETWEEN 1478476800 AND 1478645999 | |
GROUP BY dates |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment