<?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: Recursive Table in MV in Data &amp; Schema Discussions</title>
    <link>https://community.incorta.com/t5/data-schema-discussions/recursive-table-in-mv/m-p/5722#M481</link>
    <description>&lt;P&gt;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/523"&gt;@nikhil_cr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample SQL to do this using MV:&lt;BR /&gt;SELECT explode(sequence(orderdate, shipdate, interval 1 day)) as date, Total_Sales FROM order_ship_date_query_result&lt;/P&gt;&lt;P&gt;Checkout this video as well:&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/u0GrrnK2ZHA" target="_blank"&gt;https://youtu.be/u0GrrnK2ZHA&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2024 00:23:39 GMT</pubDate>
    <dc:creator>anurag</dc:creator>
    <dc:date>2024-05-08T00:23:39Z</dc:date>
    <item>
      <title>Recursive Table in MV</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/recursive-table-in-mv/m-p/5717#M478</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have start date (&lt;EM&gt;File Date&lt;/EM&gt;) and end date in the table and i want to repeat the rows for each day from start date to end date. Is there any way that I can achieve this in MV?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see screenshot -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nikhil_cr_0-1715103795522.png" style="width: 400px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/2611i14C07469371DC9C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nikhil_cr_0-1715103795522.png" alt="nikhil_cr_0-1715103795522.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help in Advance. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 17:46:01 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/recursive-table-in-mv/m-p/5717#M478</guid>
      <dc:creator>nikhil_cr</dc:creator>
      <dc:date>2024-05-07T17:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Table in MV</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/recursive-table-in-mv/m-p/5718#M479</link>
      <description>&lt;P&gt;What is your use case? How will this be used?&lt;/P&gt;&lt;P&gt;what will your output look like?&amp;nbsp; First column will be date, what about other columns?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 18:42:37 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/recursive-table-in-mv/m-p/5718#M479</guid>
      <dc:creator>anurag</dc:creator>
      <dc:date>2024-05-07T18:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Table in MV</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/recursive-table-in-mv/m-p/5719#M480</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/805"&gt;@anurag&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'm trying to pull the forecast details on a daily basis. I have this &lt;SPAN&gt;start date (&lt;/SPAN&gt;&lt;EM&gt;File date&lt;/EM&gt;) and end date, once I get the list of Rows between these two dates for each day - I can map them with my daily forecast table. I'm trying to achieve something similar to this -&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/50380904/how-to-duplicate-records-according-to-start-and-end-dates" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/50380904/how-to-duplicate-records-according-to-start-and-end-dates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But it seems the recursive CTE logic is not working in MV. Can you please help me with some alternate method?&amp;nbsp;&lt;/P&gt;&lt;P&gt;My output will look something like this - (&lt;EM&gt;Red being the start date and green being the end date&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nikhil_cr_0-1715120756847.png" style="width: 400px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/2612i7EE74F12AACE9BEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nikhil_cr_0-1715120756847.png" alt="nikhil_cr_0-1715120756847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nikhil&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 22:26:26 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/recursive-table-in-mv/m-p/5719#M480</guid>
      <dc:creator>nikhil_cr</dc:creator>
      <dc:date>2024-05-07T22:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Table in MV</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/recursive-table-in-mv/m-p/5722#M481</link>
      <description>&lt;P&gt;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/523"&gt;@nikhil_cr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample SQL to do this using MV:&lt;BR /&gt;SELECT explode(sequence(orderdate, shipdate, interval 1 day)) as date, Total_Sales FROM order_ship_date_query_result&lt;/P&gt;&lt;P&gt;Checkout this video as well:&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/u0GrrnK2ZHA" target="_blank"&gt;https://youtu.be/u0GrrnK2ZHA&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 00:23:39 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/recursive-table-in-mv/m-p/5722#M481</guid>
      <dc:creator>anurag</dc:creator>
      <dc:date>2024-05-08T00:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Table in MV</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/recursive-table-in-mv/m-p/5726#M483</link>
      <description>&lt;P&gt;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/805"&gt;@anurag&lt;/a&gt;&amp;nbsp; Thank you so much. It is working as expected.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 11:26:13 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/recursive-table-in-mv/m-p/5726#M483</guid>
      <dc:creator>nikhil_cr</dc:creator>
      <dc:date>2024-05-08T11:26:13Z</dc:date>
    </item>
  </channel>
</rss>

