→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎10-25-2016 02:21 PM
Solved! Go to Solution.
‎10-27-2016 10:13 PM
Select Top (1000000) tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tblAssets.Username,
tblAssets.Description,
T1.Location,
tblAssetGroups.AssetGroup
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroups.AssetGroupID =
tblAssetGroupLink.AssetGroupID And tblAssetGroups.Builtin = 0
Left Join tblAssetRelations On tblAssetRelations.ChildAssetID =
tblAssets.AssetID And tblAssetRelations.Type = 14
Left Join (Select a.AssetID,
a.AssetName As Location
From tblAssets a) T1 On T1.AssetID = tblAssetRelations.ParentAssetID
Where tblAssetGroups.AssetGroup = 'rugged laptops' And tblAssetCustom.State = 1
Order By tblAssets.AssetName
‎10-27-2016 11:59 PM
‎10-27-2016 10:13 PM
Select Top (1000000) tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tblAssets.Username,
tblAssets.Description,
T1.Location,
tblAssetGroups.AssetGroup
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroups.AssetGroupID =
tblAssetGroupLink.AssetGroupID And tblAssetGroups.Builtin = 0
Left Join tblAssetRelations On tblAssetRelations.ChildAssetID =
tblAssets.AssetID And tblAssetRelations.Type = 14
Left Join (Select a.AssetID,
a.AssetName As Location
From tblAssets a) T1 On T1.AssetID = tblAssetRelations.ParentAssetID
Where tblAssetGroups.AssetGroup = 'rugged laptops' And tblAssetCustom.State = 1
Order By tblAssets.AssetName
‎03-22-2018 03:21 AM
MikeMc wrote:
Thanks for the screenshot. It helps clear up the problem. I don't use that feature, but here's a query that should pull the 'Asset Location' for you.Select Top (1000000) tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tblAssets.Username,
tblAssets.Description,
T1.Location,
tblAssetGroups.AssetGroup
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroups.AssetGroupID =
tblAssetGroupLink.AssetGroupID And tblAssetGroups.Builtin = 0
Left Join tblAssetRelations On tblAssetRelations.ChildAssetID =
tblAssets.AssetID And tblAssetRelations.Type = 14
Left Join (Select a.AssetID,
a.AssetName As Location
From tblAssets a) T1 On T1.AssetID = tblAssetRelations.ParentAssetID
Where tblAssetGroups.AssetGroup = 'rugged laptops' And tblAssetCustom.State = 1
Order By tblAssets.AssetName
‎10-27-2016 08:35 PM
‎10-27-2016 06:05 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now