I couldnt find a clear answer to this questions, should be a simple one. Basically I am trying to get all computers that dont have word installed. This query seems to be giving me wrong data. Any ideas? Thanks!
SELECT DISTINCT Name FROM dbo.vComputer AS v WHERE Name NOT IN ( SELECT Name FROM dbo.vComputer WHERE (dbo.vComputer.installedsoftware LIKE N'%word%')))
installedsoftwarethat containword?NOT LIKEand drop the subselect.dbo.vComputer.installedsoftwareis nullable?