<?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=CREATE_TABLE&amp;feed=atom&amp;action=history</id>
		<title>CREATE TABLE - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://sqlzoo.net/w/index.php?title=CREATE_TABLE&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=CREATE_TABLE&amp;action=history"/>
		<updated>2013-05-21T23:54: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=CREATE_TABLE&amp;diff=1465&amp;oldid=prev</id>
		<title>Connor at 11:35, 17 July 2012</title>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=CREATE_TABLE&amp;diff=1465&amp;oldid=prev"/>
				<updated>2012-07-17T11:35:52Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 11:35, 17 July 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;div class=params&amp;gt;schema:scott&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;div class=params&amp;gt;schema:scott&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang=sql class='tidy'&amp;gt; DROP TABLE games&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang=sql class='tidy'&amp;gt; DROP TABLE games&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;SELECT &lt;/del&gt;statement &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;returns results from a &amp;lt;i&amp;gt;&lt;/del&gt;table&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/i&amp;gt;. &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;CREATE &lt;/ins&gt;statement &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;builds an empty &lt;/ins&gt;table &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;to hold &lt;/ins&gt;rows.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;With a WHERE clause only some &lt;/del&gt;rows &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;are returned&lt;/del&gt;. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;In this &lt;/ins&gt;example the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;column yr is &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;PRIMARY KEY: &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;This &lt;/del&gt;example &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;shows &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;year that Athens hosted &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Olympic games.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang='sql' class='def e-oracle'&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang='sql' class='def e-oracle'&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;CREATE TABLE games&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;CREATE TABLE games&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Connor</name></author>	</entry>

	<entry>
		<id>http://sqlzoo.net/w/index.php?title=CREATE_TABLE&amp;diff=1463&amp;oldid=prev</id>
		<title>Connor: Created page with &quot; &lt;h1&gt;CREATE TABLE&lt;/h1&gt; &lt;p&gt;The table &lt;code&gt;games&lt;/code&gt; shows the year and the city hosting the Olympic Games.&lt;/p&gt; &lt;table&gt; &lt;caption align='center'&gt;games&lt;/caption&gt; &lt;tr&gt;&lt;th align...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=CREATE_TABLE&amp;diff=1463&amp;oldid=prev"/>
				<updated>2012-07-17T11:32:08Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; &amp;lt;h1&amp;gt;CREATE TABLE&amp;lt;/h1&amp;gt; &amp;lt;p&amp;gt;The table &amp;lt;code&amp;gt;games&amp;lt;/code&amp;gt; shows the year and the city hosting the Olympic Games.&amp;lt;/p&amp;gt; &amp;lt;table&amp;gt; &amp;lt;caption align=&amp;#039;center&amp;#039;&amp;gt;games&amp;lt;/caption&amp;gt; &amp;lt;tr&amp;gt;&amp;lt;th align...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;CREATE TABLE&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The table &amp;lt;code&amp;gt;games&amp;lt;/code&amp;gt; shows the year and the city hosting the Olympic Games.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;caption align='center'&amp;gt;games&amp;lt;/caption&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th align='center'&amp;gt;'''yr'''&amp;lt;/th&amp;gt;&amp;lt;th align='center'&amp;gt;'''city'''&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;2004&amp;lt;/td&amp;gt;&amp;lt;td align='left'&amp;gt;Athens&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;2008&amp;lt;/td&amp;gt;&amp;lt;td align='left'&amp;gt;Beijing&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&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; DROP TABLE games&amp;lt;/source&amp;gt;&lt;br /&gt;
The SELECT statement returns results from a &amp;lt;i&amp;gt;table&amp;lt;/i&amp;gt;. &lt;br /&gt;
With a WHERE clause only some rows are returned. &lt;br /&gt;
This example shows the year that Athens hosted the Olympic games.&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-oracle'&amp;gt;&lt;br /&gt;
CREATE TABLE games&lt;br /&gt;
(yr   INT NOT NULL PRIMARY KEY&lt;br /&gt;
,city VARCHAR(20)&lt;br /&gt;
);&lt;br /&gt;
INSERT INTO games(yr,city) VALUES (2004,'Athens');&lt;br /&gt;
INSERT INTO games(yr,city) VALUES (2008,'Beijing');&lt;br /&gt;
SELECT * FROM games;&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&amp;lt;source lang='sql' class='def'&amp;gt;&lt;br /&gt;
CREATE TABLE games&lt;br /&gt;
(yr   INT NOT NULL PRIMARY KEY&lt;br /&gt;
,city VARCHAR(20)&lt;br /&gt;
);&lt;br /&gt;
INSERT INTO games(yr,city) VALUES (2004,'Athens');&lt;br /&gt;
INSERT INTO games(yr,city) VALUES (2008,'Beijing');&lt;br /&gt;
SELECT * FROM games;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;See also&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;[[INSERT_.._VALUES |INSERT]]&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;[[DROP |DROP]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Connor</name></author>	</entry>

	</feed>