I'm looking to create a report that report illustrates the physical/virtual ratio in our estate. I've created the following query, however, it will not work as a chart due to the fact it returns a single row:
Select Distinct Top 1000000 SUM(Case tblAssetCustom.Model
When 'VMware Virtual Platform' Then 1 When 'Virtual Machine' Then 1 Else 0 End) As 'Virtual Servers',
SUM(Case tblAssetCustom.Model
When 'VMware Virtual Platform' Then 0 When 'Virtual Machine' Then 0 Else 1 End) As 'Physical Servers'
From tblComputersystem
Inner Join tblAssets On tblComputersystem.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tblComputersystem.Domainrole > 1 And tblAssetCustom.State = 1
Is anyone able to help me translate this into a chart friendly query?
Thanks,
Chris