‎01-15-2016 08:59 PM
Solved! Go to Solution.
‎01-19-2016 09:57 AM
Select Top 1000000 unioned.assetid,
tblAssets.AssetUnique,
tblAssets.Domain,
tblAssets.Lastseen,
tsysOS.Image As icon,
unioned.software,
unioned.version,
unioned.security_center As [Windows security center]
From ((Select a.assetid As assetid,
a.software As software,
a.version As version,
b.software As security_center
From (Select tblSoftware.AssetID As assetid,
tblSoftwareUni.softwareName As software,
tblSoftware.softwareVersion As version,
tsysantivirus.Software As pattern
From tblSoftware
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Inner Join tsysantivirus On tblSoftwareUni.softwareName Like
tsysantivirus.Software) a
Left Join (Select tblAntivirus.AssetID As assetid,
tblAntivirus.DisplayName As software,
Null As version,
tsysantivirus.Software As pattern
From tblAntivirus
Inner Join tsysantivirus
On tblAntivirus.DisplayName Like tsysantivirus.Software) b
On a.assetid = b.assetid And a.pattern Like b.pattern)
Union
(Select tblAntivirus.AssetID As assetid,
Null software,
Null As version,
tblAntivirus.DisplayName As security_center
From tblAntivirus
Where tblAntivirus.AntivirusId Not In (Select tblAntivirus.AntivirusId
From tblAntivirus Join tsysantivirus On tblAntivirus.DisplayName Like
tsysantivirus.Software))) unioned
Inner Join tblAssetCustom On unioned.assetid = tblAssetCustom.AssetID
Inner Join tblAssets On tblAssets.AssetID = unioned.assetid
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where (unioned.software Like '%symantec%' And tblAssetCustom.State = 1) Or
(unioned.security_center Like '%symantec%' And tblAssetCustom.State = 1)
‎01-19-2016 09:57 AM
Select Top 1000000 unioned.assetid,
tblAssets.AssetUnique,
tblAssets.Domain,
tblAssets.Lastseen,
tsysOS.Image As icon,
unioned.software,
unioned.version,
unioned.security_center As [Windows security center]
From ((Select a.assetid As assetid,
a.software As software,
a.version As version,
b.software As security_center
From (Select tblSoftware.AssetID As assetid,
tblSoftwareUni.softwareName As software,
tblSoftware.softwareVersion As version,
tsysantivirus.Software As pattern
From tblSoftware
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Inner Join tsysantivirus On tblSoftwareUni.softwareName Like
tsysantivirus.Software) a
Left Join (Select tblAntivirus.AssetID As assetid,
tblAntivirus.DisplayName As software,
Null As version,
tsysantivirus.Software As pattern
From tblAntivirus
Inner Join tsysantivirus
On tblAntivirus.DisplayName Like tsysantivirus.Software) b
On a.assetid = b.assetid And a.pattern Like b.pattern)
Union
(Select tblAntivirus.AssetID As assetid,
Null software,
Null As version,
tblAntivirus.DisplayName As security_center
From tblAntivirus
Where tblAntivirus.AntivirusId Not In (Select tblAntivirus.AntivirusId
From tblAntivirus Join tsysantivirus On tblAntivirus.DisplayName Like
tsysantivirus.Software))) unioned
Inner Join tblAssetCustom On unioned.assetid = tblAssetCustom.AssetID
Inner Join tblAssets On tblAssets.AssetID = unioned.assetid
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where (unioned.software Like '%symantec%' And tblAssetCustom.State = 1) Or
(unioned.security_center Like '%symantec%' And tblAssetCustom.State = 1)
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now