09-28-2017 03:26 PM
11-29-2017 09:15 PM
10-16-2017 07:37 PM
Select Top 1000000 a.AssetID,
a.AssetName,
tsysIPLocations.IPLocation,
Count(a.Username) As CountUsername
From (Select Distinct tblCPlogoninfo.AssetID,
tblCPlogoninfo.Username
From tblCPlogoninfo
Where tblCPlogoninfo.logontime Between DateAdd(month, -1, GetDate())
And GetDate()) b
Left Join tblAssets a On b.AssetID = a.AssetID
Inner Join tsysIPLocations On tsysIPLocations.LocationID = a.LocationID
Group By a.AssetID,
a.AssetName,
tsysIPLocations.IPLocation
Having Count(a.Username) > 1
Order By tsysIPLocations.IPLocation,
a.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now