
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2024
03:18 PM
- last edited on
‎03-12-2025
02:25 PM
by
Obi_1_Cinobi
Good morning. I am looking for a report that will give me asset type and counts.
Example:
X = VMs
X = Computers
X = Printers........ Etc.
I am looking to have this report on both On-Prem and Cloud. Does anyone have anything like this?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2024 03:37 PM - edited ‎10-31-2024 03:39 PM
Something like this?
SELECT
AssetTypename, COUNT(tblAssets.AssetID) as Total
FROM
tblAssets
LEFT JOIN tblAssetCustom ON tblAssetCustom.AssetID = tblAssets.AssetID
LEFT JOIN tsysAssetTypes ON tsysAssetTypes.AssetType = tblAssets.Assettype
WHERE tblAssetCustom.State = 1
GROUP BY AssetTypename
Order By Total Desc
The results should look like this
AssetTypename Total
Monitor 1234
Windows 4567
Printer 890
Webserver 123
IOS 45
VOIP phone 6
Linux 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2024 03:37 PM - edited ‎10-31-2024 03:39 PM
Something like this?
SELECT
AssetTypename, COUNT(tblAssets.AssetID) as Total
FROM
tblAssets
LEFT JOIN tblAssetCustom ON tblAssetCustom.AssetID = tblAssets.AssetID
LEFT JOIN tsysAssetTypes ON tsysAssetTypes.AssetType = tblAssets.Assettype
WHERE tblAssetCustom.State = 1
GROUP BY AssetTypename
Order By Total Desc
The results should look like this
AssetTypename Total
Monitor 1234
Windows 4567
Printer 890
Webserver 123
IOS 45
VOIP phone 6
Linux 4
