<p style="MARGIN:0in 0in 10pt" class="MsoNormal"><font size="3" face="Calibri">Hello, </font></p>
<p style="MARGIN:0in 0in 10pt" class="MsoNormal"><font size="3" face="Calibri">I am doing a left outer join between a polygon table and a data table.<span style> </span>Everything returns fine from this join as expected.<span style> </span>However, there are cases where there isn’t data for a given polygon and this return as the expected null in the result set.<span style> </span>I would like to utilize something like a case statement to catch the nulls and return a “more friendly” message.<span style> </span>I have tried unsuccessfully to use the following logic:</font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNoSpacing"><i style><font size="3"><font face="Calibri">Select case value_of_interest null then ‘more friendly message’ else value_of_interest end</font></font></i></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNoSpacing"><i style><font size="3"><font face="Calibri">From poly_table left outer join data_table one poly_table.common_id = data_table.common_id</font></font></i></p>
<div style="MARGIN:0in 0in 10pt" class="MsoNormal"><font size="3" face="Calibri"> </font></div>
<div style="MARGIN:0in 0in 10pt" class="MsoNormal"><font size="3" face="Calibri">If someone could let me know where I am going wrong it would be greatly appreciated.</font></div>
<p style="MARGIN:0in 0in 10pt" class="MsoNormal"><font size="3" face="Calibri">Cheers, </font></p>
<p style="MARGIN:0in 0in 10pt" class="MsoNormal"><font size="3" face="Calibri">Derek</font></p>