I'm having a hard time with this report for LL 9.7.1/SQL 2005
This works in other SQL environments, but I can't get it working in a particular one....
Here is my statement:
SELECT CAST(KUAF.name AS char(50)) AS UserName, KUAF.FirstName ,KUAF.LastName
FROM KUAF, DAuditNew
WHERE (KUAF.Deleted = '0')
AND (KUAF.Type = '0')
AND (
CAST(KUAF.name AS char(50))
NOT IN (
select distinct CAST(DAuditNew.Value2 AS char(50))
from DAuditNew
where DAuditNew.AuditStr = N'login'
)
)
GROUP BY CAST(KUAF.name AS char(50)), KUAF.FirstName ,KUAF.LastName
ORDER BY UserName DESC
The problem is, it's returing Active Users - not users never logged in....which is what I'm after. I've looked at the other 'users never logged in' forum posts but those aren't working either.
Any ideas?