→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎06-29-2015 07:28 PM
Solved! Go to Solution.
‎06-30-2015 03:55 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Lastseen,
tConnected.AssetName As [Connected asset],
tConnectedCustom.Custom1 As [Connected asset Custom1]
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblAssetRelations
On tblAssets.AssetID = tblAssetRelations.ParentAssetID
Left Join tblAssets tConnected On tConnected.AssetID =
tblAssetRelations.ChildAssetID
Left Join tblAssetCustom tConnectedCustom On tConnectedCustom.AssetID =
tConnected.AssetID
Inner Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetRelations.Type
Where tsysAssetRelationTypes.Name = 'connected to' And tblAssetCustom.State = 1
Order By tblAssets.AssetName,
[Connected asset]
‎06-30-2015 04:31 PM
‎06-30-2015 03:55 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Lastseen,
tConnected.AssetName As [Connected asset],
tConnectedCustom.Custom1 As [Connected asset Custom1]
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblAssetRelations
On tblAssets.AssetID = tblAssetRelations.ParentAssetID
Left Join tblAssets tConnected On tConnected.AssetID =
tblAssetRelations.ChildAssetID
Left Join tblAssetCustom tConnectedCustom On tConnectedCustom.AssetID =
tConnected.AssetID
Inner Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetRelations.Type
Where tsysAssetRelationTypes.Name = 'connected to' And tblAssetCustom.State = 1
Order By tblAssets.AssetName,
[Connected asset]
‎06-29-2015 07:52 PM
‎06-29-2015 07:49 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now