
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.thelinuxwiki.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=sqlite_FULL_JOIN_emulation</id>
		<title>sqlite FULL JOIN emulation - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=sqlite_FULL_JOIN_emulation"/>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=sqlite_FULL_JOIN_emulation&amp;action=history"/>
		<updated>2026-04-29T03:55:26Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.5</generator>

	<entry>
		<id>http://www.thelinuxwiki.com/index.php?title=sqlite_FULL_JOIN_emulation&amp;diff=1257&amp;oldid=prev</id>
		<title>Nighthawk: Created page with &quot;Emulating SQLite full outer join The following statement emulates the FULL OUTER JOIN clause in SQLite:   SELECT d.type,          d.color,          c.type,          c.color  F...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=sqlite_FULL_JOIN_emulation&amp;diff=1257&amp;oldid=prev"/>
				<updated>2019-05-16T18:23:30Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Emulating SQLite full outer join The following statement emulates the FULL OUTER JOIN clause in SQLite:   SELECT d.type,          d.color,          c.type,          c.color  F...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Emulating SQLite full outer join&lt;br /&gt;
The following statement emulates the FULL OUTER JOIN clause in SQLite:&lt;br /&gt;
&lt;br /&gt;
 SELECT d.type,&lt;br /&gt;
         d.color,&lt;br /&gt;
         c.type,&lt;br /&gt;
         c.color&lt;br /&gt;
 FROM dogs d&lt;br /&gt;
 LEFT JOIN cats c USING(color)&lt;br /&gt;
 UNION ALL&lt;br /&gt;
 SELECT d.type,&lt;br /&gt;
         d.color,&lt;br /&gt;
         c.type,&lt;br /&gt;
         c.color&lt;br /&gt;
 FROM cats c&lt;br /&gt;
 LEFT JOIN dogs d USING(color)&lt;br /&gt;
 WHERE d.color IS NULL;&lt;br /&gt;
 How the query works.&lt;br /&gt;
&lt;br /&gt;
Because SQLilte does not support the RIGHT JOIN clause, we use the LEFT JOIN clause in the second SELECT statement instead and switch the positions of the cats and dogs tables.&lt;br /&gt;
The UNION ALL clause retains the duplicate rows from the result sets of both queries.&lt;br /&gt;
The WHERE clause in the second SELECT statement removes rows that already included in the result set of the first SELECT statement.&lt;br /&gt;
&lt;br /&gt;
taken from [http://www.sqlitetutorial.net/sqlite-full-outer-join/ http://www.sqlitetutorial.net/sqlite-full-outer-join/]&lt;/div&gt;</summary>
		<author><name>Nighthawk</name></author>	</entry>

	</feed>