<?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: ISNULL function in SQL script calc view in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113336#M3233499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi did you mean to type ifnull or isnull?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2012 19:14:07 GMT</pubDate>
    <dc:creator>patrickbachmann</dc:creator>
    <dc:date>2012-11-19T19:14:07Z</dc:date>
    <item>
      <title>ISNULL function in SQL script calc view</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaq-p/9113326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody had any success using the ISNULL SQL function in SQL Script calculation view?&amp;nbsp; I can not seem to get it to work in my view nor in SQL Editor.&amp;nbsp; I searched the HANA SQL Reference manual and I do not see any mention of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 16:17:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaq-p/9113326</guid>
      <dc:creator>patrickbachmann</dc:creator>
      <dc:date>2012-11-19T16:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: ISNULL function in SQL script calc view</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113327#M3233490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is "isnull" function explained in the SQL script guide - &lt;A class="active_link" href="http://help.sap.com/hana/hana_dev_sqlscript_en.pdf"&gt;http://help.sap.com/hana/hana_dev_sqlscript_en.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anooj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 16:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113327#M3233490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-19T16:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: ISNULL function in SQL script calc view</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113328#M3233491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weird, the SP04 guide you posted is 56 pages and shows ISNULL yet I seem to have 127 page version of same SP04 document and do not see ISNULL mentioned.&amp;nbsp; Thank you for the link.&amp;nbsp; I still can't get the syntax to work using direct SQL in the SQL editor.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 16:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113328#M3233491</guid>
      <dc:creator>patrickbachmann</dc:creator>
      <dc:date>2012-11-19T16:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: ISNULL function in SQL script calc view</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113329#M3233492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody have example of syntax?&amp;nbsp; ie: I want to select fields A, B, C and if B is null then I want to fill with something else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 16:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113329#M3233492</guid>
      <dc:creator>patrickbachmann</dc:creator>
      <dc:date>2012-11-19T16:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: ISNULL function in SQL script calc view</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113330#M3233493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find the syntax below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt; , &lt;SPAN style="font-family: 'courier new', courier;"&gt;CE_CALC('IF (isnull("B1"), "B2", '''' )', varchar(2)) AS "CC"]);&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it checks if the value of B1 is null, then use value from B2 or else use blank&lt;SPAN style="font-family: 'courier new', courier;"&gt; '''' (4 single quotes).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;You can modify this as per your requirement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Ravi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 17:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113330#M3233493</guid>
      <dc:creator>Ravi_Channe</dc:creator>
      <dc:date>2012-11-19T17:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: ISNULL function in SQL script calc view</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113331#M3233494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is SQL based script (I am not sure if your SQL script based view is based on CE functions or simple SQL), then you can use it following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ifnull(SPRAS, 'E')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it would check if SPRAS is null, then it will replace it with&lt;SPAN style="font-family: 'courier new', courier;"&gt; 'E'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 17:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113331#M3233494</guid>
      <dc:creator>Ravi_Channe</dc:creator>
      <dc:date>2012-11-19T17:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: ISNULL function in SQL script calc view</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113332#M3233495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For SQL Script direct you can use like:&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;case when field IS NULL then 'kkk' else 'lll' end as AAA&lt;/P&gt;&lt;P&gt;FROM....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or on WHERE&lt;/P&gt;&lt;P&gt;where field IS NULL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you can use IS NULL or IS NOT NULL predicates, or functions like ifnull, nullif, coalesce...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Fernando Da Rós&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 17:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113332#M3233495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-19T17:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: ISNULL function in SQL script calc view</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113333#M3233496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I only do it using a CE function?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 18:48:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113333#M3233496</guid>
      <dc:creator>patrickbachmann</dc:creator>
      <dc:date>2012-11-19T18:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: ISNULL function in SQL script calc view</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113334#M3233497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I posted it using CE_CALC function above. How do you wish to use it anyway ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 18:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113334#M3233497</guid>
      <dc:creator>Ravi_Channe</dc:creator>
      <dc:date>2012-11-19T18:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: ISNULL function in SQL script calc view</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113335#M3233498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh sorry I did not see your other post.&amp;nbsp; Let me try that.&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 19:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113335#M3233498</guid>
      <dc:creator>patrickbachmann</dc:creator>
      <dc:date>2012-11-19T19:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: ISNULL function in SQL script calc view</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113336#M3233499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi did you mean to type ifnull or isnull?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 19:14:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113336#M3233499</guid>
      <dc:creator>patrickbachmann</dc:creator>
      <dc:date>2012-11-19T19:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: ISNULL function in SQL script calc view</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113337#M3233500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone.&amp;nbsp; Ravi it seems IFNULL is what I wanted instead of ISNULL.&amp;nbsp; Strange but the HANA_SQL_EN.PDF that I was looking at did not even have ISNULL mentioned.&amp;nbsp; But once I searched for IFNULL it led me to the correct function I was looking for with examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 19:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113337#M3233500</guid>
      <dc:creator>patrickbachmann</dc:creator>
      <dc:date>2012-11-19T19:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: ISNULL function in SQL script calc view</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113338#M3233501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah.. the mysterious ways in which HANA works. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1079/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IFNULL used in SQL script takes and argument and if the value is null uses the second argument value supplied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ISNULL works like a Boolean function which returns 1 (TRUE) if the value of argument is NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the functions are used in different context and I am sure interpreted by different engines (probably developed by different teams in SAP, who knows &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1079/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So depending upon where it is used, you may have to use the appropriate function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 19:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-in-sql-script-calc-view/qaa-p/9113338#M3233501</guid>
      <dc:creator>Ravi_Channe</dc:creator>
      <dc:date>2012-11-19T19:46:01Z</dc:date>
    </item>
  </channel>
</rss>

