Skip to content

Instantly share code, notes, and snippets.

@StaniTr
Created January 30, 2015 12:23
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 StaniTr/37e8b555d5cd6096afed to your computer and use it in GitHub Desktop.
Save StaniTr/37e8b555d5cd6096afed to your computer and use it in GitHub Desktop.
Basic Queries - Records Insight (cnt logon, logoff, id...)
--all records: 17403
Select count(actionname) as allLogs
from puzzSessions;
--logOFF: 8687
Select count(ActionName) as cntLOFF
from puzzSessions
where ActionName='LOGOFF';
--logON: 8716
Select count(ActionName) as cntLOFF
from puzzSessions
where ActionName='LOGON';
--uniqueID=8717
Select count(distinct Session_ID) as allUniqueIDs
from puzzSessions;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment