‎07-03-2014 06:01 PM
Solved! Go to Solution.
‎07-03-2014 09:27 PM
SELECT Top 1000000
tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblAssets.AssetUnique,
tblAssets.Description,
tblAssets1.AssetName As AssetName1,
tblAssets1.Description As Description1
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
INNER JOIN tblAssets tblAssets1 ON tblAssets1.AssetID = tblAssetRelations.ChildAssetID
WHERE
tblAssetCustom.State = 1
AND tblAssets.Assettype = -1 --Windows
AND tblAssets1.AssetUnique LIKE 'Mon:%' --child asset is a monitor
‎07-03-2014 09:27 PM
SELECT Top 1000000
tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblAssets.AssetUnique,
tblAssets.Description,
tblAssets1.AssetName As AssetName1,
tblAssets1.Description As Description1
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
INNER JOIN tblAssets tblAssets1 ON tblAssets1.AssetID = tblAssetRelations.ChildAssetID
WHERE
tblAssetCustom.State = 1
AND tblAssets.Assettype = -1 --Windows
AND tblAssets1.AssetUnique LIKE 'Mon:%' --child asset is a monitor
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now