<?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: Guidelines for HANA SQL Script in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/guidelines-for-hana-sql-script/qaa-p/11004441#M4044546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghavendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Lars said, it is very difficult to answer your question and it always depend on the designing solution for specific requirements. General rules we follow in scripting are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Avoid inline queries&lt;/P&gt;&lt;P&gt;2. Break complex SQL to small and simple SQL statements and club the results&lt;/P&gt;&lt;P&gt;3. Always analyze cost using Visualize Plan&lt;/P&gt;&lt;P&gt;4. Avoid cursors/loops&lt;/P&gt;&lt;P&gt;5. Avoid mix of SQL and CE (most commonly found best practice &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1249/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2015 10:03:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-04-14T10:03:13Z</dc:date>
    <item>
      <title>Guidelines for HANA SQL Script</title>
      <link>https://community.sap.com/t5/technology-q-a/guidelines-for-hana-sql-script/qaq-p/11004439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share best practices on the usage of SQL script in procedures and Script based calculation views?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched already for the relevant information, but could not find any yet. I request you share any information other than what is available in help.sap.com based on your experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Raghavendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 13:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/guidelines-for-hana-sql-script/qaq-p/11004439</guid>
      <dc:creator>raghavendragonuguntla</dc:creator>
      <dc:date>2015-04-13T13:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Guidelines for HANA SQL Script</title>
      <link>https://community.sap.com/t5/technology-q-a/guidelines-for-hana-sql-script/qaa-p/11004440#M4044545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Show me best practices" is a too broad question.&lt;/P&gt;&lt;P&gt;What exactly are you looking for?&lt;/P&gt;&lt;P&gt;The developer guides available on help.sap.com and in your SAP HANA Studio provide you with "what to use when" on a general level.&lt;/P&gt;&lt;P&gt;More specific guidance can be found here on SCN - given you search specifically for them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 13:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/guidelines-for-hana-sql-script/qaa-p/11004440#M4044545</guid>
      <dc:creator>lbreddemann</dc:creator>
      <dc:date>2015-04-13T13:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Guidelines for HANA SQL Script</title>
      <link>https://community.sap.com/t5/technology-q-a/guidelines-for-hana-sql-script/qaa-p/11004441#M4044546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghavendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Lars said, it is very difficult to answer your question and it always depend on the designing solution for specific requirements. General rules we follow in scripting are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Avoid inline queries&lt;/P&gt;&lt;P&gt;2. Break complex SQL to small and simple SQL statements and club the results&lt;/P&gt;&lt;P&gt;3. Always analyze cost using Visualize Plan&lt;/P&gt;&lt;P&gt;4. Avoid cursors/loops&lt;/P&gt;&lt;P&gt;5. Avoid mix of SQL and CE (most commonly found best practice &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1249/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 10:03:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/guidelines-for-hana-sql-script/qaa-p/11004441#M4044546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-14T10:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Guidelines for HANA SQL Script</title>
      <link>https://community.sap.com/t5/technology-q-a/guidelines-for-hana-sql-script/qaa-p/11004442#M4044547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 04:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/guidelines-for-hana-sql-script/qaa-p/11004442#M4044547</guid>
      <dc:creator>raghavendragonuguntla</dc:creator>
      <dc:date>2015-04-29T04:23:08Z</dc:date>
    </item>
  </channel>
</rss>

