cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jaekob
Engaged Sweeper
Hi!

I use this query to list computers without our antivirus:
Select tblcomputers.Computername From tblcomputers Where tblcomputers.Computername Not In (Select dbo.tblSoftware.ComputerName From dbo.tblSoftware Where dbo.tblSoftware.softwareName Like 'Trend Micro OfficeScan Client')


I would like to exclude the computers where the software never has been scanned (we still have some..).

Anyone got any ideas how to do this?

Cheers
2 REPLIES 2
jaekob
Engaged Sweeper
Works great!

Thanks!
Hemoco
Lansweeper Alumni
Select tblcomputers.Computername From tblcomputers Where (tblcomputers.Computername Not In (Select dbo.tblSoftware.ComputerName From dbo.tblSoftware Where dbo.tblSoftware.softwareName Like 'Trend Micro OfficeScan Client')) and (computername in (select computername from tblsoftware))