<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: HANA IFNULL FUNCTION DOUBT in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/hana-ifnull-function-doubt/qaa-p/456003#M70907</link>
    <description>&lt;P&gt;Once the column STD1 is flagged as "NOTNULL" the actual value in it is empty not null. That's the reason why the function is not working in this case.&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2017 18:40:26 GMT</pubDate>
    <dc:creator>former_member280546</dc:creator>
    <dc:date>2017-05-25T18:40:26Z</dc:date>
    <item>
      <title>HANA IFNULL FUNCTION DOUBT</title>
      <link>https://community.sap.com/t5/technology-q-a/hana-ifnull-function-doubt/qaq-p/456002</link>
      <description>&lt;P&gt;I don't know if I understand the IFNULL function correctly but it seems that it is not working properly.&lt;/P&gt;&lt;P&gt;Here is my select statement:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT&lt;/STRONG&gt; LIFNR,&lt;STRONG&gt;IFNULL&lt;/STRONG&gt;(STCD1,STCD2),STCD1,STCD2 &lt;STRONG&gt;FROM&lt;/STRONG&gt; LFA1 &lt;STRONG&gt;WHERE&lt;/STRONG&gt; "LIFNR" = '0009009005'&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/35446-captura-de-tela-2017-05-22-as-153205.png" /&gt;&lt;/P&gt;&lt;P&gt;I would like to return the STCD2 value if STCD1 is null. In this sample the STCD1 is null and the function is not returning STCD2.&lt;/P&gt;&lt;P&gt;Am I missing anything?&lt;/P&gt;&lt;H2&gt;Syntax&lt;/H2&gt;&lt;PRE&gt;&lt;CODE&gt; IFNULL (expression1, expression2)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;H2&gt;Description&lt;/H2&gt;&lt;P&gt;Returns the first not NULL input expression.&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Returns expression1 if expression1 is not NULL.&lt;/LI&gt;&lt;LI&gt;Returns expression2 if expression1 is NULL.&lt;/LI&gt;&lt;LI&gt;Returns NULL if both input expressions are NULL.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Filipe&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 18:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hana-ifnull-function-doubt/qaq-p/456002</guid>
      <dc:creator>former_member280546</dc:creator>
      <dc:date>2017-05-22T18:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: HANA IFNULL FUNCTION DOUBT</title>
      <link>https://community.sap.com/t5/technology-q-a/hana-ifnull-function-doubt/qaa-p/456003#M70907</link>
      <description>&lt;P&gt;Once the column STD1 is flagged as "NOTNULL" the actual value in it is empty not null. That's the reason why the function is not working in this case.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 18:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hana-ifnull-function-doubt/qaa-p/456003#M70907</guid>
      <dc:creator>former_member280546</dc:creator>
      <dc:date>2017-05-25T18:40:26Z</dc:date>
    </item>
  </channel>
</rss>

