 




<?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/"
		>
<channel>
	<title>Comments on: Query</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/query-8/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/query-8/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 23:02:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/query-8/#comment-116875</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 02 Mar 2013 02:50:58 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/query-8/#comment-116875</guid>
		<description><![CDATA[but your minus should work .. if there are exact matches on&#160; both field values.. if you are still having issues please provide samples of your data.&lt;pre&gt;select empname, reqtrainingcourses from employees 
MINUS 
select empname, donecourses from donetraining;
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>but your minus should work .. if there are exact matches on&nbsp; both field values.. if you are still having issues please provide samples of your data.
<pre>select empname, reqtrainingcourses from employees 
MINUS 
select empname, donecourses from donetraining;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/query-8/#comment-116874</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 02 Mar 2013 02:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/query-8/#comment-116874</guid>
		<description><![CDATA[so, you might try something like this ...&lt;pre&gt;The real problem with this design is that
empname must be typed exactly the same in both tables
and reqtrainingcourses must be exactly the same as donetraining
&lt;/pre&gt;&lt;pre&gt;Usually these matches are managed by using id numbers instead of values
and having two other files.  
One table with empid and employee name 
the other with courseId and courseName.
But given these issues the following might work...

select e.empname, e.reqtrainingcourses d.empname
from employees e left join donetraining d
on e.empname = d.empname and 
e.reqtrainingcourses = d.donecourses
where d.empname is null;
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>so, you might try something like this &#8230;
<pre>The real problem with this design is that
empname must be typed exactly the same in both tables
and reqtrainingcourses must be exactly the same as donetraining
</pre>
<pre>Usually these matches are managed by using id numbers instead of values
and having two other files.  
One table with empid and employee name 
the other with courseId and courseName.
But given these issues the following might work...

select e.empname, e.reqtrainingcourses d.empname
from employees e left join donetraining d
on e.empname = d.empname and 
e.reqtrainingcourses = d.donecourses
where d.empname is null;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/query-8/#comment-116863</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Fri, 01 Mar 2013 13:47:52 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/query-8/#comment-116863</guid>
		<description><![CDATA[Is this resolved?]]></description>
		<content:encoded><![CDATA[<p>Is this resolved?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/query-8/#comment-116779</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 27 Feb 2013 08:52:43 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/query-8/#comment-116779</guid>
		<description><![CDATA[If your database is the way you described it (Title and RequiredTraining in one table; EmployeeName and CompletedTraining in the other table), then there is no way to create the query. The tables need to have something in common. It&#039;s almost certain that you need to tell us more about the two tables or about some other table that you haven&#039;t mentioned yet. There needs to be at least one table that links Title and EmployeeName together in some way. -- Tom]]></description>
		<content:encoded><![CDATA[<p>If your database is the way you described it (Title and RequiredTraining in one table; EmployeeName and CompletedTraining in the other table), then there is no way to create the query. The tables need to have something in common. It&#8217;s almost certain that you need to tell us more about the two tables or about some other table that you haven&#8217;t mentioned yet. There needs to be at least one table that links Title and EmployeeName together in some way. &#8212; Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/query-8/#comment-116753</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Tue, 26 Feb 2013 18:09:17 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/query-8/#comment-116753</guid>
		<description><![CDATA[Also, let us know what you have tried...]]></description>
		<content:encoded><![CDATA[<p>Also, let us know what you have tried&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/query-8/#comment-116744</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Tue, 26 Feb 2013 14:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/query-8/#comment-116744</guid>
		<description><![CDATA[Would you tell us what software you are working in.
Could you give us a sample of the data in both tables.]]></description>
		<content:encoded><![CDATA[<p>Would you tell us what software you are working in.<br />
Could you give us a sample of the data in both tables.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/8 queries in 0.011 seconds using memcached
Object Caching 339/340 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-26 01:04:13 -->