<?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>topic Re: Multiplying two columns by CE functions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiplying-two-columns-by-ce-functions/m-p/10303737#M1834082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bilen, no not that I am aware. Please see the SQL Script reference for usage - &lt;A href="https://help.sap.com/hana_appliance#section7"&gt;https://help.sap.com/hana_appliance#section7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If using temp tables then maybe pass in the temp table as a table parameter to the procedure and use the table variable in the CE functions. Remember not to mix SQL and CE functions in the same procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2014 14:47:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-04-24T14:47:00Z</dc:date>
    <item>
      <title>Multiplying two columns by CE functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiplying-two-columns-by-ce-functions/m-p/10303732#M1834077</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;I want to compare performance results between SQL script and CE functions.&lt;/P&gt;&lt;P&gt;I have 2 tables joined and i am multiplying 2 columns by using subquery. Tables are like that;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLE: SALES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MATERIALID -------- TOTAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLE: PRICES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MATERIALID -------- UNITP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;query is similar like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Select PRICES.MATERIALID, Prices.UNITP * (select sum(TOTAL) from SALES&lt;/P&gt;
&lt;P&gt;where PRICES.MATERIALID = SALES.MATERIALID ) as TOTAL_AMOUNT&lt;/P&gt;
&lt;P&gt;from PRICES.&lt;/P&gt;


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is there a way to do it via CE functions ?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 05:58:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiplying-two-columns-by-ce-functions/m-p/10303732#M1834077</guid>
      <dc:creator>former_member185511</dc:creator>
      <dc:date>2014-04-09T05:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying two columns by CE functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiplying-two-columns-by-ce-functions/m-p/10303733#M1834078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bilen,&lt;BR /&gt;we're more focussed on the ABAP on HANA topics here. You might get a larger audience of SQLScript experts in &lt;A __default_attr="2127" __jive_macro_name="community" class="jive_macro_community jive_macro" data-orig-content="SAP HANA and In-Memory Computing" href="https://community.sap.com/"&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Jasmin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 16:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiplying-two-columns-by-ce-functions/m-p/10303733#M1834078</guid>
      <dc:creator>jasmin_gruschke</dc:creator>
      <dc:date>2014-04-10T16:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying two columns by CE functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiplying-two-columns-by-ce-functions/m-p/10303734#M1834079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually i couldn't get reply for 2 days there &lt;SPAN __jive_emoticon_name="grin" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/718/images/emoticons/grin.gif"&gt;&lt;/SPAN&gt; so i moved topic here(here looks more dynamic) eheheh. May be not possible i am also checking.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 16:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiplying-two-columns-by-ce-functions/m-p/10303734#M1834079</guid>
      <dc:creator>former_member185511</dc:creator>
      <dc:date>2014-04-10T16:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying two columns by CE functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiplying-two-columns-by-ce-functions/m-p/10303735#M1834080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bilen, you could try something like the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;t_sales = CE_COLUMN_TABLE("SALES", ["MATERIALID","TOTAL"]);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;t_sales_agg = CE_AGGREGATION(:t_sales, [SUM("TOTAL") AS "TOT"], ["MATERIALID"]);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;t_prices = CE_COLUMN_TABLE("PRICES", ["MATERIALID","UNITP"]);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;t_sales_prices_join = CE_JOIN(:t_sales_agg,:t_prices,["MATERIALID"],["MATERIALID", "UNITP", "TOT"]);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;t_sales_total = CE_PROJECTION(:t_sales_prices_join, ["MATERIALID", CE_CALC('"UNITP" * "TOT"', decimal(10,2)) AS "TOTAL_AMOUNT"]);&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I haven't tested it but if you play around with it you should get it to work.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 09:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiplying-two-columns-by-ce-functions/m-p/10303735#M1834080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-24T09:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying two columns by CE functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiplying-two-columns-by-ce-functions/m-p/10303736#M1834081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Peter i will try and let you know, btw can we use temp tables in thise CE functions instead of :table&amp;nbsp; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 14:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiplying-two-columns-by-ce-functions/m-p/10303736#M1834081</guid>
      <dc:creator>former_member185511</dc:creator>
      <dc:date>2014-04-24T14:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying two columns by CE functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiplying-two-columns-by-ce-functions/m-p/10303737#M1834082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bilen, no not that I am aware. Please see the SQL Script reference for usage - &lt;A href="https://help.sap.com/hana_appliance#section7"&gt;https://help.sap.com/hana_appliance#section7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If using temp tables then maybe pass in the temp table as a table parameter to the procedure and use the table variable in the CE functions. Remember not to mix SQL and CE functions in the same procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 14:47:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiplying-two-columns-by-ce-functions/m-p/10303737#M1834082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-24T14:47:00Z</dc:date>
    </item>
  </channel>
</rss>

