<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://sqlzoo.net/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://sqlzoo.net/w/index.php?title=Generate_rows&amp;feed=atom&amp;action=history</id>
		<title>Generate rows - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://sqlzoo.net/w/index.php?title=Generate_rows&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=Generate_rows&amp;action=history"/>
		<updated>2013-05-19T05:12:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.4</generator>

	<entry>
		<id>http://sqlzoo.net/w/index.php?title=Generate_rows&amp;diff=3327&amp;oldid=prev</id>
		<title>Connor: Created page with &quot;&lt;p&gt;Here you are shown how to generate rows without the use of tables&lt;/p&gt; &lt;div class='ht'&gt; &lt;div class=params&gt;schema:scott&lt;/div&gt; &lt;source lang=sql class='tidy'&gt;&lt;/source&gt; &lt;source ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=Generate_rows&amp;diff=3327&amp;oldid=prev"/>
				<updated>2012-08-08T14:34:19Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;p&amp;gt;Here you are shown how to generate rows without the use of tables&amp;lt;/p&amp;gt; &amp;lt;div class=&amp;#039;ht&amp;#039;&amp;gt; &amp;lt;div class=params&amp;gt;schema:scott&amp;lt;/div&amp;gt; &amp;lt;source lang=sql class=&amp;#039;tidy&amp;#039;&amp;gt;&amp;lt;/source&amp;gt; &amp;lt;source ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;p&amp;gt;Here you are shown how to generate rows without the use of tables&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div class='ht'&amp;gt;&lt;br /&gt;
&amp;lt;div class=params&amp;gt;schema:scott&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;source lang=sql class='tidy'&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=sql class='setup'&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;You can use single value &amp;lt;code&amp;gt;SELECT&amp;lt;/code&amp;gt; to generate tables&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;You can use them when you need a small table for your query but&lt;br /&gt;
you don't have permission to create tables in the database itself.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def'&amp;gt;&lt;br /&gt;
SELECT x centigrade, x*9/5+32 fahrenheit&lt;br /&gt;
  FROM  (SELECT 0 x UNION SELECT 10 UNION SELECT 20&lt;br /&gt;
                    UNION SELECT 30 UNION SELECT 40) t&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-oracle'&amp;gt;&lt;br /&gt;
SELECT x centigrade, x*9/5+32 fahrenheit&lt;br /&gt;
  FROM (      SELECT  0 x FROM dual&lt;br /&gt;
        UNION SELECT 10   FROM dual&lt;br /&gt;
        UNION SELECT 20   FROM dual&amp;lt;/source&amp;gt;&lt;br /&gt;
        UNION SELECT 30   FROM dual&lt;br /&gt;
        UNION SELECT 40   FROM dual) t&lt;br /&gt;
&amp;lt;div class=&amp;quot;ecomm e-oracle&amp;quot; style=&amp;quot;display: none&amp;quot;&amp;gt;In oracle you can not miss the &amp;lt;code&amp;gt;FROM&amp;lt;/code&amp;gt; in a query so therefore&lt;br /&gt;
FROM dual has to be used.&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Hacks Ref}}&lt;/div&gt;</summary>
		<author><name>Connor</name></author>	</entry>

	</feed>