<?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: How to Use Common table expression in Table functions in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-use-common-table-expression-in-table-functions/qaa-p/12561563#M4710012</link>
    <description>&lt;P&gt;Hi Jalina,&lt;BR /&gt;&lt;BR /&gt;Could you please refer to refer to the following guide to find more details?&lt;BR /&gt;&lt;A href="https://help.sap.com/docs/SAP_HANA_PLATFORM/4fe29514fd584807ac9f2a04f6754767/20d42e77751910149f0ff6b879b1290f.html?q=create%20table%20function" target="test_blank"&gt;https://help.sap.com/docs/SAP_HANA_PLATFORM/4fe29514fd584807ac9f2a04f6754767/20d42e77751910149f0ff6b879b1290f.html?q=create%20table%20function&lt;/A&gt; to find &lt;BR /&gt;&lt;BR /&gt;Here is an example:&lt;/P&gt;&lt;P&gt;CREATE COLUMN TABLE "I311040"."CHARLES_TBL1" ("ID" INTEGER CS_INT NOT NULL ,&lt;/P&gt;&lt;P&gt;	 "NAME" VARCHAR(30),&lt;/P&gt;&lt;P&gt;	 "AGE" INTEGER CS_INT,&lt;/P&gt;&lt;P&gt;	 PRIMARY KEY ("ID")) UNLOAD PRIORITY 5 AUTO MERGE &lt;/P&gt;&lt;P&gt;CREATE FUNCTION FUNC RETURNS TABLE (ID INT, NAME VARCHAR, AGE INT) AS&lt;/P&gt;&lt;P&gt;BEGIN&lt;/P&gt;&lt;P&gt;	RETURN SELECT * FROM CHARLES_TBL1;&lt;/P&gt;&lt;P&gt;END&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Charles&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2022 09:13:13 GMT</pubDate>
    <dc:creator>CharlesFeng</dc:creator>
    <dc:date>2022-06-21T09:13:13Z</dc:date>
    <item>
      <title>How to Use Common table expression in Table functions</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-use-common-table-expression-in-table-functions/qaq-p/12561561</link>
      <description>&lt;P&gt;Dear HANA SQL Experts,&lt;/P&gt;
  &lt;P&gt;I want to use with table expressions in Table functions. For example,&lt;/P&gt; 
  &lt;P&gt;FUNCTION FUNC_NAME(IN INPUT1, IN INPUT2)&lt;/P&gt;
  &lt;P&gt;RETURNS TABLE &lt;/P&gt;
  &lt;P&gt;(&lt;/P&gt;
  &lt;P&gt;FIELD 1&lt;/P&gt;
  &lt;P&gt;FIELD 2&lt;/P&gt;
  &lt;P&gt;FIELD 3&lt;/P&gt;
  &lt;P&gt;)&lt;/P&gt;
  &lt;P&gt;LANGUAGE SQLSCRIPT&lt;/P&gt;
  &lt;P&gt;SQL SECURITY INVOKER AS&lt;/P&gt;
  &lt;P&gt;BEGIN&lt;/P&gt;
  &lt;P&gt;-- With Table Expression ---&lt;/P&gt;
  &lt;P&gt;TAB1 AS (&lt;/P&gt;
  &lt;P&gt;SELECT * FROM TABLE1&lt;/P&gt;
  &lt;P&gt;), &lt;/P&gt;
  &lt;P&gt;TAB2 AS (&lt;/P&gt;
  &lt;P&gt;SELECT * FROM TABLE2&lt;/P&gt;
  &lt;P&gt;)&lt;/P&gt;
  &lt;P&gt;SELECT * from TAB2&lt;/P&gt;
  &lt;P&gt;RETURN&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;How to pass TAB2 to table function Output ?&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;END;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 11:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-use-common-table-expression-in-table-functions/qaq-p/12561561</guid>
      <dc:creator>former_member184624</dc:creator>
      <dc:date>2022-06-10T11:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Common table expression in Table functions</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-use-common-table-expression-in-table-functions/qaa-p/12561562#M4710011</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can you give some example, Not able to understand fully your requirement&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 11:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-use-common-table-expression-in-table-functions/qaa-p/12561562#M4710011</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2022-06-10T11:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Common table expression in Table functions</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-use-common-table-expression-in-table-functions/qaa-p/12561563#M4710012</link>
      <description>&lt;P&gt;Hi Jalina,&lt;BR /&gt;&lt;BR /&gt;Could you please refer to refer to the following guide to find more details?&lt;BR /&gt;&lt;A href="https://help.sap.com/docs/SAP_HANA_PLATFORM/4fe29514fd584807ac9f2a04f6754767/20d42e77751910149f0ff6b879b1290f.html?q=create%20table%20function" target="test_blank"&gt;https://help.sap.com/docs/SAP_HANA_PLATFORM/4fe29514fd584807ac9f2a04f6754767/20d42e77751910149f0ff6b879b1290f.html?q=create%20table%20function&lt;/A&gt; to find &lt;BR /&gt;&lt;BR /&gt;Here is an example:&lt;/P&gt;&lt;P&gt;CREATE COLUMN TABLE "I311040"."CHARLES_TBL1" ("ID" INTEGER CS_INT NOT NULL ,&lt;/P&gt;&lt;P&gt;	 "NAME" VARCHAR(30),&lt;/P&gt;&lt;P&gt;	 "AGE" INTEGER CS_INT,&lt;/P&gt;&lt;P&gt;	 PRIMARY KEY ("ID")) UNLOAD PRIORITY 5 AUTO MERGE &lt;/P&gt;&lt;P&gt;CREATE FUNCTION FUNC RETURNS TABLE (ID INT, NAME VARCHAR, AGE INT) AS&lt;/P&gt;&lt;P&gt;BEGIN&lt;/P&gt;&lt;P&gt;	RETURN SELECT * FROM CHARLES_TBL1;&lt;/P&gt;&lt;P&gt;END&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Charles&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 09:13:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-use-common-table-expression-in-table-functions/qaa-p/12561563#M4710012</guid>
      <dc:creator>CharlesFeng</dc:creator>
      <dc:date>2022-06-21T09:13:13Z</dc:date>
    </item>
  </channel>
</rss>

