<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.theeggeadventure.com/wikimedia/index.php?action=history&amp;feed=atom&amp;title=Theta_join</id>
	<title>Theta join - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.theeggeadventure.com/wikimedia/index.php?action=history&amp;feed=atom&amp;title=Theta_join"/>
	<link rel="alternate" type="text/html" href="https://www.theeggeadventure.com/wikimedia/index.php?title=Theta_join&amp;action=history"/>
	<updated>2026-05-13T10:35:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0-beta</generator>
	<entry>
		<id>https://www.theeggeadventure.com/wikimedia/index.php?title=Theta_join&amp;diff=2313&amp;oldid=prev</id>
		<title>Brianegge: Created page with &#039;The theta join is probably the least used SQL join type.  Here&#039;s an example of a theta join in use.  Lets say you have a table of daily sales, and want a report showing the sales…&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.theeggeadventure.com/wikimedia/index.php?title=Theta_join&amp;diff=2313&amp;oldid=prev"/>
		<updated>2010-01-04T04:55:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;The theta join is probably the least used SQL join type.  Here&amp;#039;s an example of a theta join in use.  Lets say you have a table of daily sales, and want a report showing the sales…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The theta join is probably the least used SQL join type.  Here&amp;#039;s an example of a theta join in use.  Lets say you have a table of daily sales, and want a report showing the sales to date for each day.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;geshi lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
create table test (d datetime, v int)&lt;br /&gt;
&lt;br /&gt;
insert into test values (&amp;#039;20100101&amp;#039;, 0)&lt;br /&gt;
insert into test values (&amp;#039;20100102&amp;#039;, 20)&lt;br /&gt;
insert into test values (&amp;#039;20100103&amp;#039;, 30)&lt;br /&gt;
&lt;br /&gt;
select b.d, sum(a.v) from test a join test b on a.d &amp;lt;= b.d&lt;br /&gt;
group by b.d&lt;br /&gt;
&amp;lt;/geshi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The result looks like this:&lt;br /&gt;
&amp;lt;geshi&amp;gt;&lt;br /&gt;
1/01/2010 12:00:00.000 AM	0&lt;br /&gt;
2/01/2010 12:00:00.000 AM	20&lt;br /&gt;
3/01/2010 12:00:00.000 AM	50&lt;br /&gt;
&amp;lt;/geshi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Sql]]&lt;/div&gt;</summary>
		<author><name>Brianegge</name></author>
	</entry>
</feed>