‎04-03-2013 08:44 PM
‎04-04-2013 08:20 PM
‎04-04-2013 06:53 PM
Select Top 1000000 tsysAssetTypes.AssetTypename,
Count(tblAssets.AssetID) As Total
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tblAssets.Assettype = tsysAssetTypes.AssetType
Left Outer Join tsysIPLocations On tblAssets.IPNumeric >=
tsysIPLocations.StartIP And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Where tblAssetCustom.State = 1 And tsysIPLocations.IPLocation = 'site A'
Group By tsysAssetTypes.AssetTypename
Order By Count(tblAssets.AssetID) Desc
‎04-04-2013 05:44 PM
‎04-04-2013 04:44 PM
Select Top 1000000 Count(tblAssets.AssetID) As total,
tsysIPLocations.IPLocation
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Outer Join tsysIPLocations On tblAssets.IPNumeric >=
tsysIPLocations.StartIP And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Where tblAssetCustom.State = 1
Group By tsysIPLocations.IPLocation
Having tsysIPLocations.IPLocation = 'site A'
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now