→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
‎06-29-2015 05:24 PM
Solved! Go to Solution.
‎07-02-2015 01:07 PM
Select Top 1000000 tSoftwarePerLocation.IPLocation,
tSoftwarePerLocation.softwareName,
tSoftwarePerLocation.SoftwarePublisher,
tSoftwarePerLocation.Number
From (Select Count(tblAssets.AssetID) As numberAssets,
tsysIPLocations.IPLocation
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysIPLocations
On tblAssets.IPNumeric Between tsysIPLocations.StartIP And
tsysIPLocations.EndIP
Where tblAssetCustom.State = 1 And tblAssets.Assettype = -1
Group By tsysIPLocations.IPLocation) tAssetsPerLocation
Inner Join (Select Count(tblSoftware.AssetID) As Number,
tblSoftwareUni.softwareName,
tblSoftwareUni.SoftwarePublisher,
tsysIPLocations.IPLocation
From tblSoftware
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Inner Join tblAssets On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tsysIPLocations
On tblAssets.IPNumeric Between tsysIPLocations.StartIP And
tsysIPLocations.EndIP
Group By tblSoftwareUni.softwareName,
tblSoftwareUni.SoftwarePublisher,
tsysIPLocations.IPLocation) tSoftwarePerLocation
On tSoftwarePerLocation.IPLocation = tAssetsPerLocation.IPLocation
Where tAssetsPerLocation.numberAssets > tSoftwarePerLocation.Number
Order By tSoftwarePerLocation.IPLocation,
tSoftwarePerLocation.softwareName
‎07-02-2015 01:07 PM
Select Top 1000000 tSoftwarePerLocation.IPLocation,
tSoftwarePerLocation.softwareName,
tSoftwarePerLocation.SoftwarePublisher,
tSoftwarePerLocation.Number
From (Select Count(tblAssets.AssetID) As numberAssets,
tsysIPLocations.IPLocation
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysIPLocations
On tblAssets.IPNumeric Between tsysIPLocations.StartIP And
tsysIPLocations.EndIP
Where tblAssetCustom.State = 1 And tblAssets.Assettype = -1
Group By tsysIPLocations.IPLocation) tAssetsPerLocation
Inner Join (Select Count(tblSoftware.AssetID) As Number,
tblSoftwareUni.softwareName,
tblSoftwareUni.SoftwarePublisher,
tsysIPLocations.IPLocation
From tblSoftware
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Inner Join tblAssets On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tsysIPLocations
On tblAssets.IPNumeric Between tsysIPLocations.StartIP And
tsysIPLocations.EndIP
Group By tblSoftwareUni.softwareName,
tblSoftwareUni.SoftwarePublisher,
tsysIPLocations.IPLocation) tSoftwarePerLocation
On tSoftwarePerLocation.IPLocation = tAssetsPerLocation.IPLocation
Where tAssetsPerLocation.numberAssets > tSoftwarePerLocation.Number
Order By tSoftwarePerLocation.IPLocation,
tSoftwarePerLocation.softwareName
‎06-30-2015 05:48 PM
‎06-30-2015 04:16 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Lastseen,
tSoftware.softwareName,
tSoftware.softwareVersion
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tsysIPLocations
On tblAssets.IPNumeric Between tsysIPLocations.StartIP And
tsysIPLocations.EndIP
Inner Join (Select tblSoftware.AssetID,
tblSoftwareUni.softwareName,
tblSoftware.softwareVersion
From tblSoftware
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Where tblSoftwareUni.softwareName In ('Lansweeper ',
'Microsoft SQL Server 2012 ')) tSoftware On tSoftware.AssetID =
tblAssets.AssetID
Where tblAssetCustom.State = 1 And tsysIPLocations.IPLocation =
'Example IP location '
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now