taeratrin wrote:
SELECT computers.[Computer],computers.Username ,monitors.[MonitorModel]
FROM [lansweeperdb].[dbo].[tblMonitor] as monitors Inner Join
[lansweeperdb] .[dbo] .[tblComputers] as computers on monitors .Computername = Computers .Computername where
(select COUNT(*) from (SELECT * FROM [lansweeperdb].[dbo].[tblMonitor] WHERE tblMonitor .MonitorModel <> 'Not Found') as m2 where m2.Computername =monitors .Computername)>1
Nice! Your query ignores the Not Found when counting, but I had to add this to the end of your query to hide the Not Found monitors from the final result:
and monitors.[MonitorModel] <> 'Not Found'
Very helpful script!