→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎05-21-2014 08:42 PM
Solved! Go to Solution.
‎05-21-2014 09:05 PM
SELECT Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
CASE
WHEN EXISTS ( SELECT
tblQuickFixEngineering.AssetID
FROM
tblQuickFixEngineering
INNER JOIN tblQuickFixEngineeringUni ON tblQuickFixEngineeringUni.QFEID = tblQuickFixEngineering.QFEID
WHERE
tblQuickFixEngineering.AssetID = tblAssets.AssetID
And tblQuickFixEngineeringUni.HotFixID Like 'KB2919355%'
)
THEN 'Win 8.1 Update'
ELSE tsysOS.OSname
END AS OSName,
tblAssets.SP
FROM
tblAssets
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysAssetTypes ON tsysAssetTypes.AssetType = tblAssets.Assettype
INNER JOIN tsysOS ON tblAssets.OScode = tsysOS.OScode
WHERE
tblAssetCustom.State = 1
‎06-24-2014 06:10 PM
‎05-21-2014 09:23 PM
‎05-21-2014 09:14 PM
‎05-21-2014 09:05 PM
SELECT Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
CASE
WHEN EXISTS ( SELECT
tblQuickFixEngineering.AssetID
FROM
tblQuickFixEngineering
INNER JOIN tblQuickFixEngineeringUni ON tblQuickFixEngineeringUni.QFEID = tblQuickFixEngineering.QFEID
WHERE
tblQuickFixEngineering.AssetID = tblAssets.AssetID
And tblQuickFixEngineeringUni.HotFixID Like 'KB2919355%'
)
THEN 'Win 8.1 Update'
ELSE tsysOS.OSname
END AS OSName,
tblAssets.SP
FROM
tblAssets
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysAssetTypes ON tsysAssetTypes.AssetType = tblAssets.Assettype
INNER JOIN tsysOS ON tblAssets.OScode = tsysOS.OScode
WHERE
tblAssetCustom.State = 1
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now