Here is the sql to show who has logged in for the past 60 days. Note it has nothing to do with sessions. Just simply the fact that they logged in. SELECT LAST_NAME, FIRST_NAME, USER_NAME, LAST_LOGGED_IN_DATE
FROM niku.CMN_SEC_USERS
where LAST_LOGGED_IN_DATE >= DATEADD(day, -60, CURRENT_TIMESTAMP)