‎03-05-2019 01:18 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName As VPC,
Count(tblAWSInstance.AWSInstanceId) As #OfInstances
From tblAssets
Inner Join tblAWSContainer On tblAWSContainer.AssetID = tblAssets.AssetID
Inner Join tblAWSInstance On tblAWSInstance.AWSContainerId =
tblAWSContainer.AWSContainerId
Where (tblAWSContainer.VpcId != '' Or tblAWSContainer.VpcId != Null)
Group By tblAssets.AssetID,
tblAssets.AssetName
Order By #OfInstances Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now