<?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=Replace_a_NULL_with_specific_value&amp;feed=atom&amp;action=history</id>
		<title>Replace a NULL with specific value - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://sqlzoo.net/w/index.php?title=Replace_a_NULL_with_specific_value&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=Replace_a_NULL_with_specific_value&amp;action=history"/>
		<updated>2013-05-21T16:56:59Z</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=Replace_a_NULL_with_specific_value&amp;diff=1533&amp;oldid=prev</id>
		<title>Connor: Created page with &quot;Replace a NULL with a specific value &lt;div class='ht'&gt; &lt;div class=params&gt;schema:gisq&lt;/div&gt; &lt;div&gt; The SQL standard is COALESCE &lt;/div&gt; &lt;source lang=sql class='tidy'...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=Replace_a_NULL_with_specific_value&amp;diff=1533&amp;oldid=prev"/>
				<updated>2012-07-17T14:53:09Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Replace a NULL with a specific value &amp;lt;div class=&amp;#039;ht&amp;#039;&amp;gt; &amp;lt;div class=params&amp;gt;schema:gisq&amp;lt;/div&amp;gt; &amp;lt;div&amp;gt; The SQL standard is &lt;a href=&quot;/wiki/COALESCE&quot; title=&quot;COALESCE&quot;&gt;COALESCE&lt;/a&gt; &amp;lt;/div&amp;gt; &amp;lt;source lang=sql class=&amp;#039;tidy&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Replace a NULL with a specific value&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;
&amp;lt;div&amp;gt;&lt;br /&gt;
The SQL standard is [[COALESCE |COALESCE]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;source lang=sql class='tidy'&amp;gt;&lt;br /&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;source lang='sql' class='def e-access'&amp;gt;SELECT code, name,&lt;br /&gt;
    IIF(ISNULL(leader),&lt;br /&gt;
        'NO LEADER RECORDED!',&lt;br /&gt;
        leader)&lt;br /&gt;
  FROM party&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-oracle'&amp;gt;SELECT code, name,&lt;br /&gt;
    COALESCE(leader, 'NO LEADER RECORDED!')&lt;br /&gt;
  FROM gisq.party&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def'&amp;gt;SELECT code, name,&lt;br /&gt;
    COALESCE(leader, 'NO LEADER RECORDED!')&lt;br /&gt;
  FROM party&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;ecomm e-access&amp;quot; style=&amp;quot;display: none&amp;quot;&amp;gt;Use IIF and ISNULL&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;ecomm e-postgres&amp;quot; style=&amp;quot;display: none&amp;quot;&amp;gt;COALESCE takes any number of arguments, it returns the first which is not null.&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{Functions ref}}&lt;/div&gt;</summary>
		<author><name>Connor</name></author>	</entry>

	</feed>