‎10-11-2016 04:18 PM
Solved! Go to Solution.
‎10-12-2016 11:08 PM
Select Distinct Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
(Case When T1.AssetID Is Not Null Then 'Found' Else 'Not Found'
End) As SoftwareCheck,
tblAssets.Firstseen
From tblAssets
Inner Join tblAssetCustom On tblAssetCustom.AssetID = tblAssets.AssetID
Left Join (Select tblSoftware.AssetID
From tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%Adobe%') T1 On T1.AssetID =
tblAssets.AssetID
Where tblAssets.Firstseen >= DateAdd(hh, -24, GetDate()) And
tblAssetCustom.State = 1 And tblAssets.Assettype = -1
‎10-12-2016 11:08 PM
Select Distinct Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
(Case When T1.AssetID Is Not Null Then 'Found' Else 'Not Found'
End) As SoftwareCheck,
tblAssets.Firstseen
From tblAssets
Inner Join tblAssetCustom On tblAssetCustom.AssetID = tblAssets.AssetID
Left Join (Select tblSoftware.AssetID
From tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%Adobe%') T1 On T1.AssetID =
tblAssets.AssetID
Where tblAssets.Firstseen >= DateAdd(hh, -24, GetDate()) And
tblAssetCustom.State = 1 And tblAssets.Assettype = -1
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now