→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
07-10-2012 01:26 PM
Solved! Go to Solution.
09-12-2013 09:28 PM
SELECT TOP 1000000
tsysAssetTypes.AssetTypename,
tsysIPLocations.IPLocation,
Count(tblAssets.AssetID) As [Count]
FROM
tsysIPLocations
INNER JOIN tblAssets ON tblAssets.IPNumeric >= tsysIPLocations.StartIP AND tblAssets.IPNumeric <= tsysIPLocations.EndIP
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysAssetTypes ON tsysAssetTypes.AssetType = tblAssets.Assettype
WHERE
tblAssetCustom.State = 1
GROUP BY
tsysAssetTypes.AssetTypename,
tsysIPLocations.IPLocation
WHERE
tblAssetCustom.State = 1
AND tsysAssetTypes.AssetTypename IN ('Windows','Linux','Macintosh')
09-18-2013 12:03 AM
09-13-2013 01:33 AM
SELECT DISTINCT
tsysAssetTypes.AssetTypename,
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
Count(tblAssets.AssetID) As [Count]
FROM
tsysIPLocations
INNER JOIN tblAssets ON tblAssets.IPNumeric >= tsysIPLocations.StartIP AND tblAssets.IPNumeric <= tsysIPLocations.EndIP
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysAssetTypes ON tsysAssetTypes.AssetType = tblAssets.Assettype
INNER JOIN tblComputerSystem ON tblComputerSystem.AssetID = tblAssets.AssetID
WHERE
tblAssetCustom.State = 1
AND tblComputerSystem.Domainrole <= 1
GROUP BY
tsysAssetTypes.AssetTypename,
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model
09-13-2013 01:20 AM
SELECT TOP 1000000
tsysAssetTypes.AssetTypename,
tsysIPLocations.IPLocation,
Count(tblAssets.AssetID) As [Count]
FROM
tsysIPLocations
INNER JOIN tblAssets ON tblAssets.IPNumeric >= tsysIPLocations.StartIP AND tblAssets.IPNumeric <= tsysIPLocations.EndIP
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysAssetTypes ON tsysAssetTypes.AssetType = tblAssets.Assettype
INNER JOIN tblComputerSystem ON tblComputerSystem.AssetID = tblAssets.AssetID
WHERE
tblAssetCustom.State = 1
AND tblComputerSystem.Domainrole <= 1
GROUP BY
tsysAssetTypes.AssetTypename,
tsysIPLocations.IPLocation
09-13-2013 12:33 AM
09-12-2013 09:28 PM
SELECT TOP 1000000
tsysAssetTypes.AssetTypename,
tsysIPLocations.IPLocation,
Count(tblAssets.AssetID) As [Count]
FROM
tsysIPLocations
INNER JOIN tblAssets ON tblAssets.IPNumeric >= tsysIPLocations.StartIP AND tblAssets.IPNumeric <= tsysIPLocations.EndIP
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysAssetTypes ON tsysAssetTypes.AssetType = tblAssets.Assettype
WHERE
tblAssetCustom.State = 1
GROUP BY
tsysAssetTypes.AssetTypename,
tsysIPLocations.IPLocation
WHERE
tblAssetCustom.State = 1
AND tsysAssetTypes.AssetTypename IN ('Windows','Linux','Macintosh')
09-12-2013 06:22 PM
07-10-2012 05:48 PM
07-10-2012 03:15 PM
Select web40AllIPLocations.IPLocation, Count(web40AllIPLocations.Computername)
As [Computer Count]
From web40AllIPLocations Inner Join
web40ActiveComputers On web40ActiveComputers.Computername =
web40AllIPLocations.Computername
Group By web40AllIPLocations.IPLocation
Having web40AllIPLocations.IPLocation <> ''
Order By Count(web40AllIPLocations.Computername)
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now