Hi Dludlu,
i've resolved a similar request from the client with the "[dbo].[tblLoggedIn]" table of the environment.
USEEnvironmentShell;
SELECT
u.[UserID],
q.ApplicationNm,
q.lastLogIn,
DATEDIFF(MONTH,q.lastLogIn,GETDATE()) asDiff
FROM[dbo].[tblUsers] u
LEFT OUTER JOIN (
SELECT DISTINCT
[UserID],
[ApplicationNm],
MAX([TimeLoggedIn] ) aslastLogIn
FROM[dbo].[tblLoggedIn]
GROUP BY[UserID],[ApplicationNm]
) qONq.[UserID] = u.[UserID];
This query returns the users and the difference in months from the last log in and the users that never logged in.
You can change "EnvironmentShell" in the USE statement for the name of any environment you have.
With this i think you'll be able to create your report.
Hope this helps.
Kindest Regards,
Santiago R