jnelson993
Posts: 899
Score: 127 Joined: 2/18/2005 From: Minneapolis, MN Status: offline
|
The problem is in the subselect. The subselect needs to return only one column, you've got 2. But instead of just fixing that, a lot could be eliminated. If all you need to return is the netbios name, then the join condition is unecessary, and the join in the subselect is unnecessary too. SELECT DISTINCT SMS_R_System.NetbiosName FROM SMS_R_System WHERE SMS_R_System.ResourceID NOT IN (SELECT SMS_G_System_UnknownFile.resourceID FROM SMS_G_System_UnknownFile WHERE SMS_G_System_UnknownFile.FileName = "Adssecur.dll")
_____________________________
Number2 (John Nelson) MyITForum - Blog MyITForum - Forum Posts
|