Query:
Add collection ID in 'X'
SELECT CSYS.Model0, Count(*) as 'Count'
FROM v_GS_COMPUTER_SYSTEM CSYS
JOIN v_FullCollectionMembership fcm on CSYS.ResourceID=fcm.ResourceID
WHERE fcm.CollectionID='X'
GROUP BY CSYS.Model0
ORDER BY Count DESC
Output:
Model of computer Count of machines
No comments:
Post a Comment