Find Machines with NULL Software Inventory
SELECT DISTINCT
a.Name0,
a.resourceid,
a.Creation_date0,
a.Obsolete0,
a.Client0,
a.Active0,
b.LastScandate AS LastSWscan,
c.LastHWscan
FROM v_r_system AS a
LEFT OUTER JOIN v_GS_LastSoftwareScan AS b
ON a.resourceid = b.resourceid
LEFT OUTER JOIN v_GS_WORKSTATION_STATUS AS c
ON a.resourceid = c.resourceid
WHERE a.Name0 IN (SELECT Name0
FROM v_r_system
GROUP BY Name0
HAVING COUNT(*) < 2)
AND (b.LastScandate is NULL and a.Client0 =1 and a.Obsolete0=0)
ORDER BY c.LastHWscan, b.LastScandate desc
a.Name0,
a.resourceid,
a.Creation_date0,
a.Obsolete0,
a.Client0,
a.Active0,
b.LastScandate AS LastSWscan,
c.LastHWscan
FROM v_r_system AS a
LEFT OUTER JOIN v_GS_LastSoftwareScan AS b
ON a.resourceid = b.resourceid
LEFT OUTER JOIN v_GS_WORKSTATION_STATUS AS c
ON a.resourceid = c.resourceid
WHERE a.Name0 IN (SELECT Name0
FROM v_r_system
GROUP BY Name0
HAVING COUNT(*) < 2)
AND (b.LastScandate is NULL and a.Client0 =1 and a.Obsolete0=0)
ORDER BY c.LastHWscan, b.LastScandate desc
4 Comments:
I really appreciate your post and it was superb .Thanks for sharing information.
I like your article and it really gives an outstanding idea that is very helpful for all the people on web.
I like your article and it really gives an outstanding idea that is very helpful for all the people on web.
Thank you Jaison,
This is a great write and useful for the reader.
Thanks again for sharing.
Post a Comment
Subscribe to Post Comments [Atom]
<< Home