‎04-28-2015 03:35 PM
Solved! Go to Solution.
‎02-16-2016 08:38 PM
jmichiels wrote:
Hello
I want make/have a query that show a list with user that have more then 1 computers as last logged in.
In that way we can figure out who have still old computer or second computer which is not allowed for us.
(working good)
But I noticed that the report also include secondary PC that are not-active which make just 1 computer and not more then one PC.
Is it possible to configure only show computers and secondary pc that are also active.
Select Top 1000000 tblAssets.AssetID,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.AssetName,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Lastseen
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join (Select tblAssets.Username,
tblAssets.Userdomain,
Count(tblAssets.AssetID) As number
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tblAssetCustom.State = 1
Group By tblAssets.Username,
tblAssets.Userdomain
Having Count(tblAssets.AssetID) > 1) tCount On tCount.Username =
tblAssets.Username And tCount.Userdomain = tblAssets.Userdomain
Where tblAssetCustom.State = 1
Order By tCount.Username
‎02-08-2016 11:13 AM
‎02-16-2016 08:38 PM
jmichiels wrote:
Hello
I want make/have a query that show a list with user that have more then 1 computers as last logged in.
In that way we can figure out who have still old computer or second computer which is not allowed for us.
(working good)
But I noticed that the report also include secondary PC that are not-active which make just 1 computer and not more then one PC.
Is it possible to configure only show computers and secondary pc that are also active.
Select Top 1000000 tblAssets.AssetID,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.AssetName,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Lastseen
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join (Select tblAssets.Username,
tblAssets.Userdomain,
Count(tblAssets.AssetID) As number
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tblAssetCustom.State = 1
Group By tblAssets.Username,
tblAssets.Userdomain
Having Count(tblAssets.AssetID) > 1) tCount On tCount.Username =
tblAssets.Username And tCount.Userdomain = tblAssets.Userdomain
Where tblAssetCustom.State = 1
Order By tCount.Username
‎04-30-2015 10:56 AM
‎04-30-2015 10:52 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.AssetName,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Lastseen
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join (Select tblAssets.Username,
tblAssets.Userdomain,
Count(tblAssets.AssetID) As number
From tblAssets
Group By tblAssets.Username,
tblAssets.Userdomain
Having Count(tblAssets.AssetID) > 1) tCount On tCount.Username =
tblAssets.Username And tCount.Userdomain = tblAssets.Userdomain
Where tblAssetCustom.State = 1
Order By tCount.Username
‎04-29-2015 11:44 AM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now