‎02-27-2013 06:30 PM
Solved! Go to Solution.
‎03-01-2013 10:03 AM
Select Top 1000000 tblSoftwareUni.softwareName As software,
tblSoftwareUni.SoftwarePublisher As publisher,
tsysIPLocations.IPLocation,
Count(tblAssets.AssetID) As Installations
From tblSoftware
Inner Join tblAssets On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Left Outer Join tsysIPLocations On tblAssets.IPNumeric >=
tsysIPLocations.StartIP And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tblAssetCustom.State = 1
Group By tblSoftwareUni.softwareName,
tblSoftwareUni.SoftwarePublisher,
tsysIPLocations.IPLocation
Having tblSoftwareUni.SoftwarePublisher Like '%microsoft%'
Order By tblSoftwareUni.softwareName,
tsysIPLocations.IPLocation
‎03-01-2013 10:03 AM
Select Top 1000000 tblSoftwareUni.softwareName As software,
tblSoftwareUni.SoftwarePublisher As publisher,
tsysIPLocations.IPLocation,
Count(tblAssets.AssetID) As Installations
From tblSoftware
Inner Join tblAssets On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Left Outer Join tsysIPLocations On tblAssets.IPNumeric >=
tsysIPLocations.StartIP And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tblAssetCustom.State = 1
Group By tblSoftwareUni.softwareName,
tblSoftwareUni.SoftwarePublisher,
tsysIPLocations.IPLocation
Having tblSoftwareUni.SoftwarePublisher Like '%microsoft%'
Order By tblSoftwareUni.softwareName,
tsysIPLocations.IPLocation
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now