‎01-02-2015 08:33 PM
Solved! Go to Solution.
‎01-07-2015 09:59 PM
SELECT Top 1000000
tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
CASE
WHEN EXISTS (SELECT
tblSoftware.AssetID
FROM
tblSoftware
INNER JOIN tblSoftwareUni ON tblSoftwareUni.SoftID=tblSoftware.SoftID
WHERE
tblSoftware.AssetID=tblAssets.AssetID
AND ( tblSoftwareUni.SoftwareName LIKE '%PGP%'
OR tblSoftwareUni.SoftwareName LIKE '%Symantec Encryption%'
)
)
THEN 'YES'
ELSE ''
END AS CryptoFound
FROM
tblAssets
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysAssetTypes ON tsysAssetTypes.AssetType = tblAssets.Assettype
INNER JOIN tblPortableBattery ON tblPortableBattery.AssetID=tblAssets.AssetID
WHERE
tblAssetCustom.State = 1
‎01-14-2015 09:11 PM
‎01-07-2015 09:59 PM
SELECT Top 1000000
tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
CASE
WHEN EXISTS (SELECT
tblSoftware.AssetID
FROM
tblSoftware
INNER JOIN tblSoftwareUni ON tblSoftwareUni.SoftID=tblSoftware.SoftID
WHERE
tblSoftware.AssetID=tblAssets.AssetID
AND ( tblSoftwareUni.SoftwareName LIKE '%PGP%'
OR tblSoftwareUni.SoftwareName LIKE '%Symantec Encryption%'
)
)
THEN 'YES'
ELSE ''
END AS CryptoFound
FROM
tblAssets
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysAssetTypes ON tsysAssetTypes.AssetType = tblAssets.Assettype
INNER JOIN tblPortableBattery ON tblPortableBattery.AssetID=tblAssets.AssetID
WHERE
tblAssetCustom.State = 1
‎01-05-2015 03:29 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblSoftwareUni.softwareName,
tblSoftwareUni.SoftwarePublisher
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblAssets.AssetID In (Select tblPortableBattery.AssetID
From tblPortableBattery) And (tblSoftwareUni.softwareName Like '%PGP%' Or
tblSoftwareUni.softwareName Like 'Symantec Encryption%') And
tblAssetCustom.State = 1
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now