‎08-31-2015 02:54 PM
Solved! Go to Solution.
‎08-31-2015 05:06 PM
> GetDate() - 1in field tblAssets.Firstseen. Please find a full example report query below:
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Join tsysIPLocations On tblAssets.IPNumeric >= tsysIPLocations.StartIP
And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Where tblAssets.Firstseen > GetDate() - 1 And tblAssetCustom.State = 1
Order By tblAssets.Firstseen Desc
‎09-01-2015 02:24 PM
‎09-01-2015 02:20 PM
‎08-31-2015 05:28 PM
‎08-31-2015 05:06 PM
> GetDate() - 1in field tblAssets.Firstseen. Please find a full example report query below:
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Join tsysIPLocations On tblAssets.IPNumeric >= tsysIPLocations.StartIP
And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Where tblAssets.Firstseen > GetDate() - 1 And tblAssetCustom.State = 1
Order By tblAssets.Firstseen Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now