
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2016 10:07 PM

Microsoft Office Professional 2013 NorthAmerica 400
Microsoft Office Professional 2013 Africa 50
Microsoft Office Professional 2007 Europe 200
Microsoft Office Professional 2010 Asia 425
I have read through Adding IP locations to a report and attempted to implement what is suggested in the post without success.
Any advice/suggestions are welcomed and appreciated.
Solved! Go to Solution.
Labels:
- Labels:
-
Report Center
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2016 10:46 PM
Using the two resources you refer to, I come up with:
You'll have to add filters if you don't want every single piece of Microsoft software, of course.
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
You'll have to add filters if you don't want every single piece of Microsoft software, of course.
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2016 11:25 PM
RC62N,
Thank you for the quick reply. I will give it a go and let you know how it turns out.
Thank you for the quick reply. I will give it a go and let you know how it turns out.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2016 10:46 PM
Using the two resources you refer to, I come up with:
You'll have to add filters if you don't want every single piece of Microsoft software, of course.
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
You'll have to add filters if you don't want every single piece of Microsoft software, of course.
