Displays a single percentage number of patches for all the servers for a company
Select
clients.Company,
(Sum(v_hotfixes.Installed) / Count(v_hotfixes.kbID)) As percentagepatched,
clients.ClientID
From
clients Inner Join
v_computers On clients.ClientID = v_computers.ClientID Inner Join
v_hotfixes On v_computers.ComputerID = v_hotfixes.ComputerID
Where
v_computers.OS Like '%Server%'
Group By
clients.Company, clients.ClientID
Comments
0 comments