<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4420322816086672700</id><updated>2011-07-08T07:18:19.406+01:00</updated><category term='UNION'/><category term='FULL OUTER JOIN'/><category term='SQL'/><title type='text'>AS400 / i-Series questions and answers</title><subtitle type='html'>I you have a question please post it on this site and I will do my best to provide an answer. If I cannot answer it then I will endeavour to find a solution from amongst the array of contacts and colleagues I have accumulated over the years.

Nothing is guaranteed but I will do my best.

Also please feel welcome to display your own knowledge and expertise by posting tips and solutions on this site.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://lmrh-iseries.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4420322816086672700/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://lmrh-iseries.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>LMRH</name><uri>http://www.blogger.com/profile/04053884299413681025</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4420322816086672700.post-7144472766573246721</id><published>2009-09-11T14:51:00.003+01:00</published><updated>2009-09-11T14:53:26.637+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UNION'/><category scheme='http://www.blogger.com/atom/ns#' term='FULL OUTER JOIN'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Simulating a Full Outer Join</title><content type='html'>Like the left and right outer joins, a full outer join returns matching rows from both tables.&lt;br /&gt;&lt;br /&gt;However, a full outer join also returns non-matching rows from both tables; left and right. While DB2 UDB for iSeries does not support full outer join syntax, you can simulate a full outer join by using a left outer join and a right exception join.&lt;br /&gt;&lt;br /&gt;Suppose you want to find all employees and all projects You want to see those employees that are not currently in charge of a project as well. The following query will return a list of all employees whose names are greater than 'S', along with their assigned project numbers.&lt;br /&gt;&lt;br /&gt;SELECT EMPNO, LASTNAME, PROJNO&lt;br /&gt;FROM CORPDATA.EMPLOYEE LEFT OUTER JOIN CORPDATA.PROJECT&lt;br /&gt;ON EMPNO = RESPEMP&lt;br /&gt;WHERE LASTNAME &gt; 'S'&lt;br /&gt;UNION&lt;br /&gt;(SELECT EMPNO, LASTNAME, PROJNO&lt;br /&gt;FROM CORPDATA.PROJECT EXCEPTION JOIN CORPDATA.EMPLOYEE&lt;br /&gt;ON EMPNO = RESPEMP&lt;br /&gt;WHERE LASTNAME &gt; 'S');&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4420322816086672700-7144472766573246721?l=lmrh-iseries.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lmrh-iseries.blogspot.com/feeds/7144472766573246721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lmrh-iseries.blogspot.com/2009/09/simulating-full-outer-join.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4420322816086672700/posts/default/7144472766573246721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4420322816086672700/posts/default/7144472766573246721'/><link rel='alternate' type='text/html' href='http://lmrh-iseries.blogspot.com/2009/09/simulating-full-outer-join.html' title='Simulating a Full Outer Join'/><author><name>LMRH</name><uri>http://www.blogger.com/profile/04053884299413681025</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4420322816086672700.post-7572292588539981281</id><published>2009-07-12T20:47:00.003+01:00</published><updated>2009-07-12T20:53:04.071+01:00</updated><title type='text'>Post</title><content type='html'>Please post questions or comments here. I will start new threads as necessary&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4420322816086672700-7572292588539981281?l=lmrh-iseries.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lmrh-iseries.blogspot.com/feeds/7572292588539981281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lmrh-iseries.blogspot.com/2009/07/please-post-questions-or-comments-here.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4420322816086672700/posts/default/7572292588539981281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4420322816086672700/posts/default/7572292588539981281'/><link rel='alternate' type='text/html' href='http://lmrh-iseries.blogspot.com/2009/07/please-post-questions-or-comments-here.html' title='Post'/><author><name>LMRH</name><uri>http://www.blogger.com/profile/04053884299413681025</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
