→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎09-19-2014 02:25 PM
Select Top 1000000 SubQuery.Username,
SubQuery.Domain As Userdomain,
SubQuery.LastLogon,
tblAssets.AssetName as ComputerName,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssets.Domain,
tblOperatingsystem.Caption as OperatingSystem,
tblComputersystem.SystemType,
tblOperatingsystem.ServicePackMajorVersion as ServicePack
From tblCPlogoninfo
Inner Join (Select Top 1000000 tblCPlogoninfo.Username,
tblCPlogoninfo.Domain,
Max(tblCPlogoninfo.logontime) As LastLogon
From tblCPlogoninfo
Group By tblCPlogoninfo.Username,
tblCPlogoninfo.Domain) SubQuery On tblCPlogoninfo.Username =
SubQuery.Username And tblCPlogoninfo.Domain = SubQuery.Domain And
tblCPlogoninfo.logontime = SubQuery.LastLogon
Inner Join tblAssets On tblAssets.AssetID = tblCPlogoninfo.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblOperatingSystem On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblComputersystem on tblAssets.AssetID = tblComputersystem.AssetID
Solved! Go to Solution.
‎09-19-2014 06:49 PM
‎10-27-2014 03:51 AM
‎09-19-2014 07:50 PM
‎09-19-2014 06:49 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now