Issue: In a med/large environment you may have thousands of named users and dozens or hundreds of project databases/schemas. As time goes on, how do you determine who is actually doing something in the tool?
This example SQL will return all users that have logged into ANY project and done SOMETHING since 1 January, 2014, returning their User Name, Email and Full Name
SELECT User_name, EMAIL, FULL_NAME, from QCSITEADMIN_DB.USERS WHERE EXISTS (
Select NULL
From QCSITEADMIN_DB.SESSIONS_HISTORY
WHERE QCSITEADMIN_DB.SESSIONS_HISTORY.USER_NAME = QCSITEADMIN_DB.USERS.USER_NAME
AND QCSITEADMIN_DB.SESSIONS_HISTORY.END_TIME > '01-JAN-14')
order by USER_NAME
To find the "slackers" for the same period of time:
SELECT User_name, EMAIL, FULL_NAME from QCSITEADMIN_DB.USERS WHERE NOT EXISTS (
Select NULL
From QCSITEADMIN_DB.SESSIONS_HISTORY
WHERE QCSITEADMIN_DB.SESSIONS_HISTORY.USER_NAME = QCSITEADMIN_DB.USERS.USER_NAME
AND QCSITEADMIN_DB.SESSIONS_HISTORY.END_TIME > '01-JAN-14')
order by USER_NAME