Quantcast
Channel: Support Portal
Viewing all articles
Browse latest Browse all 20315

Re : query for last workstation user

$
0
0
Hi,

Please use the below query.

select aal.NAME "Logged User" , MAX(aas.USER_HOST) "IP Address", MAX(aas.Application_host) "Host",LONGTODATE(MAX(aas.OPENTIME)) "Last Login time" from AaaAccSession aas LEFT JOIN AaaAccount aacc on aacc.ACCOUNT_ID=aas.ACCOUNT_ID LEFT JOIN AaaLogin aal on aal.LOGIN_ID=aacc.LOGIN_ID  WHERE aal.USER_ID in (select technicianid from helpdeskcrew) GROUP BY  aal.NAME
ORDER BY 1 desc

Regards,
Murali
SDP Support - FAQ
ServiceDesk Plus - Help Desk Software of your Choice

Viewing all articles
Browse latest Browse all 20315

Trending Articles