<?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 Passing variable in SQL query while extracting data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2489912#M101871</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am using an SQL query to fetch previous day's data from an Oracle database. This query gives me data for just previous day. I need last 45 days worth of data on a daily basis.&lt;/P&gt;
&lt;P&gt;Is there a way I can pass a variable for the highlighted section of the query snippet below so that I can run a loop and extract data for all the past 45 days... something like &lt;EM&gt;sysdate - $(vDateCount)&amp;nbsp;&lt;/EM&gt;in place of the highlighted section.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bsharma_velcro_0-1730291884381.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173570i76499B9A82035DC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bsharma_velcro_0-1730291884381.png" alt="bsharma_velcro_0-1730291884381.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Bhaskar&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2024 12:43:22 GMT</pubDate>
    <dc:creator>bsharma_velcro</dc:creator>
    <dc:date>2024-10-30T12:43:22Z</dc:date>
    <item>
      <title>Passing variable in SQL query while extracting data</title>
      <link>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2489912#M101871</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am using an SQL query to fetch previous day's data from an Oracle database. This query gives me data for just previous day. I need last 45 days worth of data on a daily basis.&lt;/P&gt;
&lt;P&gt;Is there a way I can pass a variable for the highlighted section of the query snippet below so that I can run a loop and extract data for all the past 45 days... something like &lt;EM&gt;sysdate - $(vDateCount)&amp;nbsp;&lt;/EM&gt;in place of the highlighted section.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bsharma_velcro_0-1730291884381.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173570i76499B9A82035DC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bsharma_velcro_0-1730291884381.png" alt="bsharma_velcro_0-1730291884381.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Bhaskar&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 12:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2489912#M101871</guid>
      <dc:creator>bsharma_velcro</dc:creator>
      <dc:date>2024-10-30T12:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Passing variable in SQL query while extracting data</title>
      <link>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2489915#M101873</link>
      <description>&lt;P&gt;Sure.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Load-data-day-by-day-using-loop/td-p/1799763" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Load-data-day-by-day-using-loop/td-p/1799763&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Plenty of other threads about similar requirements, so a search should help you if that one isn't precisely what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 12:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2489915#M101873</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-10-30T12:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Passing variable in SQL query while extracting data</title>
      <link>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2489996#M101881</link>
      <description>&lt;P&gt;My variable doesn't go in the where clause, but in the body of the query and subqueries within, where my variable declared in Qlik are not identified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Bhaskar&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 15:12:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2489996#M101881</guid>
      <dc:creator>bsharma_velcro</dc:creator>
      <dc:date>2024-10-30T15:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Passing variable in SQL query while extracting data</title>
      <link>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2490012#M101882</link>
      <description>&lt;P&gt;What makes you say that they are not identified.,?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 16:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2490012#M101882</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-10-30T16:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Passing variable in SQL query while extracting data</title>
      <link>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2490017#M101883</link>
      <description>&lt;P&gt;Because it's throwing error.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 17:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2490017#M101883</guid>
      <dc:creator>bsharma_velcro</dc:creator>
      <dc:date>2024-10-30T17:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Passing variable in SQL query while extracting data</title>
      <link>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2490043#M101886</link>
      <description>&lt;P&gt;Sounds like you have a syntax issue, then. You may want to share your actual code...&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 20:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2490043#M101886</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-10-30T20:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Passing variable in SQL query while extracting data</title>
      <link>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2492642#M102216</link>
      <description>&lt;P&gt;You are right. I had syntax and date format issue. It's working fine now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Bhaskar&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 06:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Passing-variable-in-SQL-query-while-extracting-data/m-p/2492642#M102216</guid>
      <dc:creator>bsharma_velcro</dc:creator>
      <dc:date>2024-11-14T06:49:48Z</dc:date>
    </item>
  </channel>
</rss>

