<?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 SQL SCRIPT MONTHS_BETWEEN Function is not working in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/hana-sql-script-months-between-function-is-not-working/qaa-p/469861#M77754</link>
    <description>&lt;P&gt;Seems like you are using a shared HANA instance which is still on HANA 1.0 SPS9 level. The HANA MDC instance available on SAP CP Trial is at level HANA 1.0 SPS12.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2017 05:34:36 GMT</pubDate>
    <dc:creator>pfefferf</dc:creator>
    <dc:date>2017-03-13T05:34:36Z</dc:date>
    <item>
      <title>HANA SQL SCRIPT MONTHS_BETWEEN Function is not working</title>
      <link>https://community.sap.com/t5/technology-q-a/hana-sql-script-months-between-function-is-not-working/qaq-p/469858</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt; I tired the below HANA SQL standard function to get difference between two dates but it is working only for "DAYS_BETWEEN" not for Months and Years. I followed the below SQL reference &lt;/P&gt;&lt;P&gt;&lt;A href="http://help-legacy.sap.com/saphelp_hanaplatform/helpdata/en/9f/9eb73468b04bbc9d6014d22d2bfb90/content.htm" target="test_blank"&gt;http://help-legacy.sap.com/saphelp_hanaplatform/helpdata/en/9f/9eb73468b04bbc9d6014d22d2bfb90/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/24921-date-function.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Error Log &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/24922-date-function-error.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I got some solution from SCN  &lt;A href="https://archive.sap.com/discussions/thread/3877237" target="test_blank"&gt;https://archive.sap.com/discussions/thread/3877237&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As i am working on Demo Hana cloud server i am not able to access it . &lt;/P&gt;&lt;P&gt;My question is why the standard date function " MONTHS_BETWEEN" and "YEARS_BETWEEN" are not working as "DAYS_BETWEEN?&lt;/P&gt;&lt;P&gt;Thank you All &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2017 16:22:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hana-sql-script-months-between-function-is-not-working/qaq-p/469858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-12T16:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: HANA SQL SCRIPT MONTHS_BETWEEN Function is not working</title>
      <link>https://community.sap.com/t5/technology-q-a/hana-sql-script-months-between-function-is-not-working/qaa-p/469859#M77752</link>
      <description>&lt;P&gt;Both functions MONTHS_BETWEEN and YEARS_BETWEEN are added to HANA with HANA 1.0 SPS12. So I assume you are on a lower release level (DAYS_BETWEEN is already available since some SPS).&lt;/P&gt;&lt;P&gt;The link to the (legacy) online documentation, points to HANA 2.0 SPS00 in which the functions of course available too.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Florian&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2017 18:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hana-sql-script-months-between-function-is-not-working/qaa-p/469859#M77752</guid>
      <dc:creator>pfefferf</dc:creator>
      <dc:date>2017-03-12T18:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: HANA SQL SCRIPT MONTHS_BETWEEN Function is not working</title>
      <link>https://community.sap.com/t5/technology-q-a/hana-sql-script-months-between-function-is-not-working/qaa-p/469860#M77753</link>
      <description>&lt;P&gt;Thanks for your reply : ) . Yes it's current version in 1.00.097 . I am using SAP HANA trail version . Is HANA 2.0 is available in HANA trail version? You have any idea about it ?  &lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 05:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hana-sql-script-months-between-function-is-not-working/qaa-p/469860#M77753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-13T05:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: HANA SQL SCRIPT MONTHS_BETWEEN Function is not working</title>
      <link>https://community.sap.com/t5/technology-q-a/hana-sql-script-months-between-function-is-not-working/qaa-p/469861#M77754</link>
      <description>&lt;P&gt;Seems like you are using a shared HANA instance which is still on HANA 1.0 SPS9 level. The HANA MDC instance available on SAP CP Trial is at level HANA 1.0 SPS12.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 05:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hana-sql-script-months-between-function-is-not-working/qaa-p/469861#M77754</guid>
      <dc:creator>pfefferf</dc:creator>
      <dc:date>2017-03-13T05:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: HANA SQL SCRIPT MONTHS_BETWEEN Function is not working</title>
      <link>https://community.sap.com/t5/technology-q-a/hana-sql-script-months-between-function-is-not-working/qaa-p/469862#M77755</link>
      <description>&lt;P&gt;Thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; HANA MDC Trail instance is working perfect .&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 15:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hana-sql-script-months-between-function-is-not-working/qaa-p/469862#M77755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-13T15:41:36Z</dc:date>
    </item>
  </channel>
</rss>

