→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎05-20-2015 10:32 PM
Solved! Go to Solution.
‎05-22-2015 11:09 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Username,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Lastseen,
Case tblMonitorHist.Action When 1 Then '+' When 2 Then '-'
End As [Monitor +/-],
tblMonitorHist.LastChanged,
tblMonitorHist.MonitorModel,
tblMonitorHist.SerialNumber
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblMonitorHist On tblAssets.AssetID = tblMonitorHist.AssetID
Where tblAssetCustom.State = 1
Order By tblAssets.AssetName,
tblMonitorHist.LastChanged Desc
‎05-22-2015 11:09 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Username,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Lastseen,
Case tblMonitorHist.Action When 1 Then '+' When 2 Then '-'
End As [Monitor +/-],
tblMonitorHist.LastChanged,
tblMonitorHist.MonitorModel,
tblMonitorHist.SerialNumber
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblMonitorHist On tblAssets.AssetID = tblMonitorHist.AssetID
Where tblAssetCustom.State = 1
Order By tblAssets.AssetName,
tblMonitorHist.LastChanged Desc
‎05-21-2015 09:54 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypeIcon10 As icon,
tConnected.Lastseen,
tsysAssetRelationTypes.Name As Relation,
tConnected.AssetName As [connected to],
tblAssetRelations.StartDate As since
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.ChildAssetID
Inner Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetRelations.Type
Left Join tblAssets tConnected On tConnected.AssetID =
tblAssetRelations.ParentAssetID
Where tsysAssetTypes.AssetTypename = 'monitor' And tblAssetCustom.State = 1
Order By tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now