Skip to content

Instantly share code, notes, and snippets.

@normansolutions
Last active January 2, 2016 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save normansolutions/8299545 to your computer and use it in GitHub Desktop.
Save normansolutions/8299545 to your computer and use it in GitHub Desktop.
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