<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Better Subselect Queries</title>
	<atom:link href="http://verbalprocessor.com/2010/01/30/better-subselect-queries/feed/" rel="self" type="application/rss+xml" />
	<link>http://verbalprocessor.com/2010/01/30/better-subselect-queries/</link>
	<description>Jarvis&#039;s Ramblings</description>
	<lastBuildDate>Fri, 27 Jan 2012 02:19:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Jarvis</title>
		<link>http://verbalprocessor.com/2010/01/30/better-subselect-queries/#comment-1658</link>
		<dc:creator><![CDATA[Jarvis]]></dc:creator>
		<pubDate>Wed, 20 Apr 2011 21:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=679#comment-1658</guid>
		<description><![CDATA[The issue with your query is partially that you are using different criteria in the two portions of the query (the two &quot;where&quot; clauses). Take a close look at the screencapture video on this post. You are also going one more step in query complexity by throwing in the Server 2008 limitation. I haven&#039;t tried this, but maybe try a subselect (focused only on .NET framework) for the collection that is further restricted via a limiting collection that contains all Server 2008 systems. I don&#039;t know if this will work or is possible...just thinking off the top of my head while in a meeting.]]></description>
		<content:encoded><![CDATA[<p>The issue with your query is partially that you are using different criteria in the two portions of the query (the two &#8220;where&#8221; clauses). Take a close look at the screencapture video on this post. You are also going one more step in query complexity by throwing in the Server 2008 limitation. I haven&#8217;t tried this, but maybe try a subselect (focused only on .NET framework) for the collection that is further restricted via a limiting collection that contains all Server 2008 systems. I don&#8217;t know if this will work or is possible&#8230;just thinking off the top of my head while in a meeting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Spec</title>
		<link>http://verbalprocessor.com/2010/01/30/better-subselect-queries/#comment-1657</link>
		<dc:creator><![CDATA[Dan Spec]]></dc:creator>
		<pubDate>Mon, 18 Apr 2011 23:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=679#comment-1657</guid>
		<description><![CDATA[I have spent an hour or so working on this subselect query. Any help would be greatly appreciated.

We want a group with all 2008 servers that does not have .net 3.5 SP1 installed. Here is what I have so far,

select distinct SMS_R_System.Name from  SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.Name like &quot;Microsoft%Windows Server%2008%&quot; and SMS_G_System_SYSTEM.Name not in (select distinct SMS_R_System.Name from  SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = &quot;Microsoft .NET Framework 3.5 SP1&quot;)

The above query isnt working. 

Im probably going about it the wrong way. Please help =)

Thanks,

Dan]]></description>
		<content:encoded><![CDATA[<p>I have spent an hour or so working on this subselect query. Any help would be greatly appreciated.</p>
<p>We want a group with all 2008 servers that does not have .net 3.5 SP1 installed. Here is what I have so far,</p>
<p>select distinct SMS_R_System.Name from  SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.Name like &#8220;Microsoft%Windows Server%2008%&#8221; and SMS_G_System_SYSTEM.Name not in (select distinct SMS_R_System.Name from  SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = &#8220;Microsoft .NET Framework 3.5 SP1&#8243;)</p>
<p>The above query isnt working. </p>
<p>Im probably going about it the wrong way. Please help =)</p>
<p>Thanks,</p>
<p>Dan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://verbalprocessor.com/2010/01/30/better-subselect-queries/#comment-1490</link>
		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Fri, 24 Sep 2010 14:46:14 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=679#comment-1490</guid>
		<description><![CDATA[In our environment, we been more successful using the installed .exe string instead of the Add/Remove string. We&#039;ve seen different versions of software make the add/remove string very compolicated and sometimes report incorrect.]]></description>
		<content:encoded><![CDATA[<p>In our environment, we been more successful using the installed .exe string instead of the Add/Remove string. We&#8217;ve seen different versions of software make the add/remove string very compolicated and sometimes report incorrect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarvis</title>
		<link>http://verbalprocessor.com/2010/01/30/better-subselect-queries/#comment-1488</link>
		<dc:creator><![CDATA[Jarvis]]></dc:creator>
		<pubDate>Fri, 24 Sep 2010 13:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=679#comment-1488</guid>
		<description><![CDATA[I don&#039;t know why you are getting those results re: Add/Remove Programs.

As for your subselect, you will need to post the entire subselect query before I could try to diagnose that one.]]></description>
		<content:encoded><![CDATA[<p>I don&#8217;t know why you are getting those results re: Add/Remove Programs.</p>
<p>As for your subselect, you will need to post the entire subselect query before I could try to diagnose that one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://verbalprocessor.com/2010/01/30/better-subselect-queries/#comment-1486</link>
		<dc:creator><![CDATA[Andrew]]></dc:creator>
		<pubDate>Fri, 24 Sep 2010 03:15:22 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=679#comment-1486</guid>
		<description><![CDATA[Sup. having a lil issue i was wondering if anyone had any ideas.

First i have a collection with a query for add/remove programs.
Add/Remove Programs.Display Name is equal to &quot;Macromedia Dreamweaver 8&quot;

this will report about 600odd machines which i know is incorrect connecting to these machines and checking add/remove programs they don&#039;t have it. (not sure why im getting so many results)

if i add in a SubSelected values

Where: System Resource - Resource ID

Operator: is not in

select SMS_R_System.ResourceId from  SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = &quot;Macromedia Dreamweaver 8&quot;

i get a empty collection 

is it now reporting correctly that no machines have it installed. or am i just lost :)]]></description>
		<content:encoded><![CDATA[<p>Sup. having a lil issue i was wondering if anyone had any ideas.</p>
<p>First i have a collection with a query for add/remove programs.<br />
Add/Remove Programs.Display Name is equal to &#8220;Macromedia Dreamweaver 8&#8243;</p>
<p>this will report about 600odd machines which i know is incorrect connecting to these machines and checking add/remove programs they don&#8217;t have it. (not sure why im getting so many results)</p>
<p>if i add in a SubSelected values</p>
<p>Where: System Resource &#8211; Resource ID</p>
<p>Operator: is not in</p>
<p>select SMS_R_System.ResourceId from  SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = &#8220;Macromedia Dreamweaver 8&#8243;</p>
<p>i get a empty collection </p>
<p>is it now reporting correctly that no machines have it installed. or am i just lost :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarvis</title>
		<link>http://verbalprocessor.com/2010/01/30/better-subselect-queries/#comment-1480</link>
		<dc:creator><![CDATA[Jarvis]]></dc:creator>
		<pubDate>Mon, 20 Sep 2010 19:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=679#comment-1480</guid>
		<description><![CDATA[think about what it is doing... Here is what you are telling the system to do if you have three criteria:
1. Go grab fields 1, 2, and 3 for every system that X is true of.
2. Now, show me all systems whose name is not returned by the first query...except that it is being told to look for the name in a query that includes name, domain name and IP address.
It errors out because it isn&#039;t a valid query. It is trying to compare one field to three. You need to give it concise criteria to parse.]]></description>
		<content:encoded><![CDATA[<p>think about what it is doing&#8230; Here is what you are telling the system to do if you have three criteria:<br />
1. Go grab fields 1, 2, and 3 for every system that X is true of.<br />
2. Now, show me all systems whose name is not returned by the first query&#8230;except that it is being told to look for the name in a query that includes name, domain name and IP address.<br />
It errors out because it isn&#8217;t a valid query. It is trying to compare one field to three. You need to give it concise criteria to parse.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarvis</title>
		<link>http://verbalprocessor.com/2010/01/30/better-subselect-queries/#comment-1479</link>
		<dc:creator><![CDATA[Jarvis]]></dc:creator>
		<pubDate>Mon, 20 Sep 2010 18:44:58 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=679#comment-1479</guid>
		<description><![CDATA[Yeah...I was hoping for a lot more after we got Masoli. It&#039;s been a rough year so far...and it&#039;s not going to get any easier! Seriously...Jacksonville State and Vandy? I&#039;m living in Minneapolis now, so I&#039;m solidly in the heart of Big Ten country. I&#039;m just glad for the extra coverage that the SEC gets...I can still see most games!

Hopefully removing those other two fields fixes it for you.]]></description>
		<content:encoded><![CDATA[<p>Yeah&#8230;I was hoping for a lot more after we got Masoli. It&#8217;s been a rough year so far&#8230;and it&#8217;s not going to get any easier! Seriously&#8230;Jacksonville State and Vandy? I&#8217;m living in Minneapolis now, so I&#8217;m solidly in the heart of Big Ten country. I&#8217;m just glad for the extra coverage that the SEC gets&#8230;I can still see most games!</p>
<p>Hopefully removing those other two fields fixes it for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://verbalprocessor.com/2010/01/30/better-subselect-queries/#comment-1478</link>
		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Mon, 20 Sep 2010 18:44:15 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=679#comment-1478</guid>
		<description><![CDATA[Success.....

Im still confused on why the list variables would keep the criteria from returning any items.]]></description>
		<content:encoded><![CDATA[<p>Success&#8230;..</p>
<p>Im still confused on why the list variables would keep the criteria from returning any items.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://verbalprocessor.com/2010/01/30/better-subselect-queries/#comment-1477</link>
		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Mon, 20 Sep 2010 18:38:31 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=679#comment-1477</guid>
		<description><![CDATA[Ive done both the build from scratch and follow the leader. I will try and remove the other requirements and see if it works.

LOL...Yeah I work at the University of Mississippi Medical Center. I am Ole Miss Alumni as well, but seems to be rather embarrassing given the past two games!]]></description>
		<content:encoded><![CDATA[<p>Ive done both the build from scratch and follow the leader. I will try and remove the other requirements and see if it works.</p>
<p>LOL&#8230;Yeah I work at the University of Mississippi Medical Center. I am Ole Miss Alumni as well, but seems to be rather embarrassing given the past two games!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarvis</title>
		<link>http://verbalprocessor.com/2010/01/30/better-subselect-queries/#comment-1476</link>
		<dc:creator><![CDATA[Jarvis]]></dc:creator>
		<pubDate>Mon, 20 Sep 2010 18:35:25 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=679#comment-1476</guid>
		<description><![CDATA[First question...are you following the step-by-step instructions or writing this from scratch? 

Second, I think the problem is in your second select statement. Remove &quot;, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.IPAddresses &quot; from the query and it should work. In general for a subselect, only put the specific criteria you need to get the results you are looking for. When you put it into a collection it is going to show you specific criteria about the system anyway...not just the three items you put in your query.

BTW...I saw where you work based on your email address. I&#039;m from Mississippi originally and am an Ole Miss alum. Hotty Toddy! :-)]]></description>
		<content:encoded><![CDATA[<p>First question&#8230;are you following the step-by-step instructions or writing this from scratch? </p>
<p>Second, I think the problem is in your second select statement. Remove &#8220;, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.IPAddresses &#8221; from the query and it should work. In general for a subselect, only put the specific criteria you need to get the results you are looking for. When you put it into a collection it is going to show you specific criteria about the system anyway&#8230;not just the three items you put in your query.</p>
<p>BTW&#8230;I saw where you work based on your email address. I&#8217;m from Mississippi originally and am an Ole Miss alum. Hotty Toddy! :-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

