‎04-29-2015 03:01 PM
Solved! Go to Solution.
‎04-30-2015 11:01 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblNetworkHist.Lastchanged As [Network change],
Case tblNetworkHist.Action When 1 Then '+' When 2 Then '-' End As [+/-],
tblNetworkHist.IPAddress As [IPAddress History],
tblNetworkHist.IPSubnet
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblNetworkHist On tblAssets.AssetID = tblNetworkHist.AssetID
Where tblNetworkHist.Lastchanged > GetDate() - 7 And
tblNetworkHist.IPAddress Like '192.168.210.%' And tblAssetCustom.State = 1
Order By [Network change] Desc
‎04-30-2015 11:01 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblNetworkHist.Lastchanged As [Network change],
Case tblNetworkHist.Action When 1 Then '+' When 2 Then '-' End As [+/-],
tblNetworkHist.IPAddress As [IPAddress History],
tblNetworkHist.IPSubnet
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblNetworkHist On tblAssets.AssetID = tblNetworkHist.AssetID
Where tblNetworkHist.Lastchanged > GetDate() - 7 And
tblNetworkHist.IPAddress Like '192.168.210.%' And tblAssetCustom.State = 1
Order By [Network change] Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now