Last active
January 2, 2016 11:49
-
-
Save normansolutions/8299545 to your computer and use it in GitHub Desktop.
For use on blog post: http://www.normansolutions.co.uk/post/creating-a-firefly-online-users-feature
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 TOP 500 UPPER(REPLACE(REPLACE(user_identity, '@STMARYS.EU', ''), 'ST-MARYS\\', '')) as Online, guid, date FROM hits h INNER JOIN tokens t ON (h.user_guid COLLATE DATABASE_DEFAULT = t.guid COLLATE DATABASE_DEFAULT) WHERE AND t.user_identity NOT like('%_1')AND t.user_identity NOT like('%_2') ORDER BY [date] DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment