→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎03-09-2016 10:07 PM
Solved! Go to Solution.
‎03-09-2016 10:46 PM
Select Top 1000000
tblSoftwareUni.softwareName As Software,
tsysIPLocations.IPLocation,
Count(tblSoftware.SoftwareID) As Total
FROM
tblSoftware
INNER JOIN tblAssets ON tblSoftware.AssetID = tblAssets.AssetID
INNER JOIN tblSoftwareUni ON tblSoftware.softID = tblSoftwareUni.SoftID
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
LEFT JOIN tsysIPLocations ON tsysIPLocations.EndIP >= tblAssets.IPNumeric AND tsysIPLocations.StartIP <= tblAssets.IPNumeric
WHERE
tblSoftwareUni.SoftwarePublisher Like N'%microsoft%'
And tblAssetCustom.State = 1
GROUP BY
tblSoftwareUni.softwareName,
tsysIPLocations.IPLocation
ORDER BY
Software,
Total Desc
‎03-09-2016 11:25 PM
‎03-09-2016 10:46 PM
Select Top 1000000
tblSoftwareUni.softwareName As Software,
tsysIPLocations.IPLocation,
Count(tblSoftware.SoftwareID) As Total
FROM
tblSoftware
INNER JOIN tblAssets ON tblSoftware.AssetID = tblAssets.AssetID
INNER JOIN tblSoftwareUni ON tblSoftware.softID = tblSoftwareUni.SoftID
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
LEFT JOIN tsysIPLocations ON tsysIPLocations.EndIP >= tblAssets.IPNumeric AND tsysIPLocations.StartIP <= tblAssets.IPNumeric
WHERE
tblSoftwareUni.SoftwarePublisher Like N'%microsoft%'
And tblAssetCustom.State = 1
GROUP BY
tblSoftwareUni.softwareName,
tsysIPLocations.IPLocation
ORDER BY
Software,
Total Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now