United Kingdom Endpoint Management User Group

 View Only

Computers without a department or an owner 

Jan 31, 2014 07:17 AM

The following query will display those computer assets that either do not have a department or an owner associated with them:

SELECT vc.Name AS Computer,vado.Department,vauo.[User Name] AS [Owner]
FROM vComputer vc
LEFT JOIN vAssetUserOwner vauo ON vc.[Guid] = vauo._AssetGuid
LEFT JOIN vAssetDepartmentOwner vado ON vc.[Guid] = vado._AssetGuid
WHERE vado.Department IS NULL
OR vauo.[User Name] IS NULL
ORDER BY vc.Name ASC

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.