Hello,
I have 2 queries I run and manually add the data together to get something to send to management for hard drive encryption based on software installed on a computer. SCCM doesn't directly report if the software is doing its job or not, just checking if it is installed. One report lists all systems that have the software that is installed, the other lists the systems that don't have the software installed. I am not the greatest with SQL, so I am asking how I merge the 2 queries together? For simplicity here is the 2 queries I am running.
Select DISTINCT gcs.name0 AS 'Computer Name', gcs.UserName0 AS 'User Name', gos.Caption0 AS 'Operating System', arp.DisplayName0, arp.Version0 FROM v_GS_COMPUTER_SYSTEM gcs JOIN v_GS_ADD_REMOVE_PROGRAMS arp ON gcs.ResourceID = arp.ResourceID JOIN v_GS_OPERATING_SYSTEM gos ON gcs.ResourceID = gos.ResourceID WHERE arp.Publisher0 LIKE 'Safend%'
Select DISTINCT gcs.name0 AS 'Computer Name', gcs.UserName0 AS 'User Name', gos.Caption0 AS 'Operating System' FROM v_GS_COMPUTER_SYSTEM gcs JOIN v_GS_ADD_REMOVE_PROGRAMS arp ON gcs.ResourceID = arp.ResourceID JOIN v_GS_OPERATING_SYSTEM gos ON gcs.ResourceID = gos.ResourceID WHERE gcs.ResourceID NOT IN(SELECT GCS.ResourceID FROM v_GS_COMPUTER_SYSTEM gcs JOIN v_GS_ADD_REMOVE_PROGRAMS arp ON gcs.ResourceID = arp.ResourceID WHERE arp.Publisher0 LIKE 'Safend%')
I am trying to get the results of both into 1 query and in the columns have the Softare and Version listed for 'Safend%' if it is installed.