Created
July 8, 2016 16:28
-
-
Save jacksoneyton/affa92b71b28a9fd3019c47fc146e084 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT clients.name AS 'ClientName',comp.name AS 'ComputerName', COUNT(H.installed) AS '# Patches Missing',comp.lastcontact AS 'Last Checked In' | |
FROM hotfix AS H, computers AS comp, clients | |
WHERE H.installed=0 | |
AND H.approved=1 | |
AND comp.computerid=H.computerid | |
AND comp.clientid=clients.clientid | |
AND comp.clientid=220 | |
GROUP BY comp.name | |
ORDER BY comp.lastcontact DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment