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

	<entry>
		<id>http://www.sqlzoo.net/w/index.php?title=Selecting_NULL_values.&amp;diff=1687&amp;oldid=prev</id>
		<title>Connor: Created page with &quot;&lt;p&gt;Sometimes NULL values are given in tables, this might be because the data is unknown or is inappropriate. In the Parliament database a NULL value for party in the MSP table...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.sqlzoo.net/w/index.php?title=Selecting_NULL_values.&amp;diff=1687&amp;oldid=prev"/>
				<updated>2012-07-18T09:13:44Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;p&amp;gt;Sometimes NULL values are given in tables, this might be because the data is unknown or is inappropriate. In the Parliament database a NULL value for party in the MSP table...&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;Sometimes NULL values are given in tables, this might be because the data is unknown or is inappropriate. In the Parliament database a NULL value for party in the MSP table indicates that the MSP concerned is not a member of any of the parties. In the party table a NULL value is used where the party does not have an official leader - or I couldn't find one. I rather like it that the Greens and the Scottish Socialist Party don't seem to have leaders - and it suits my purposes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can use the phrase IS NULL to pick out fields. We can use IS NOT NULL similarly.&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:gisq&amp;lt;/div&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;
SELECT code, name FROM gisq.party&lt;br /&gt;
  WHERE leader IS NULL&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&amp;lt;source lang='sql' class='def'&amp;gt;&lt;br /&gt;
SELECT code, name FROM party&lt;br /&gt;
  WHERE leader IS NULL&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Connor</name></author>	</entry>

	</feed>