<?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: Loop on sql query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-on-sql-query/m-p/1639310#M447067</link>
    <description>&lt;P&gt;Usually you couldn't join within a loop because your added fields from the first iteration will be considered within the next iterations ...&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 06:59:59 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2019-10-24T06:59:59Z</dc:date>
    <item>
      <title>Loop on sql query</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-on-sql-query/m-p/1639067#M447047</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hey community,&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;I have a strange Issue and&amp;nbsp; i can not found the prob, Here's the detail .&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i Extracted all Data into first table called it Data with 2000 rows (2000 code client).&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have already 2 filter created st_0 &amp;amp; st_1 each one contains 1000 ID or as i called it Code_Client.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So i have to Extract data from different table where code client in&amp;nbsp;st_0 &amp;amp; st_1, but in the end of the script i have only the details of the first itération (St_0)..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;the code below is the extraction i want to do.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699"&gt;&lt;STRONG&gt;______________________________________________________________________&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;&lt;FONT color="#FF0000"&gt;Data:&lt;/FONT&gt; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;LOAD &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLICODECLI as Code_client_Orc, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;date(CLIDJJETAT&amp;amp;'/'&amp;amp;CLIDMMETAT&amp;amp;'/'&amp;amp;CLIDAAETAT) as DATE_ETAT,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLINUMETEL as N°_TÉL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;SQl Select&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLICODECLI,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLIDJJETAT, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLIDMMETAT, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLIDAAETAT, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLINUMETEL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;From REFTIERMAW.REFCLIPP00 where &lt;FONT color="#008000"&gt;CLIDMMETAT=2&lt;/FONT&gt; and &lt;FONT color="#008000"&gt;CLIDAAETAT=2018&lt;/FONT&gt; ;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;for b=0 to 1 step 1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;/* Tiers PP*/&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;left join(Data)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;LOAD &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLPCODECLI&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; as Code_client_Orc , &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLPNOMCLIP&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;as NOM_CLIENT, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLPPRECLIP&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;as PRENOM_CLIENT;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;SQl Select&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLPCODECLI,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLPNOMCLIP, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLPPRECLIP&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;From REFTIERMAW.REFCLPPP00 where CLPCODECLI in &lt;FONT color="#FF0000"&gt;$(st_$(b))&lt;/FONT&gt; ;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;/*Tiers PM*/&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;left join(Data)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;LOAD&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLMCODECLI&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; as Code_client_Orc, &amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLMNBRSALR&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;as CAPITAL;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;SQl select&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLMCODECLI, &amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;CLMNBRSALR &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;From REFTIERMAW.REFCLMPP00 where CLMCODECLI in &lt;FONT color="#FF0000"&gt;$(st_$(b))&lt;/FONT&gt; ;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;/* Adresse */&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;left join(Data)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;LOAD&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;ADCCODECLI&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; as Code_client_Orc, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;ADCLIBLADC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; as LIBELLE_ADRESSE, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;ADCCODEVIL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; as CODE_VILLE, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;ADCCODEPAY&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;as CODE_PAYS;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;SQL&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;Select&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;ADCCODECLI, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;ADCLIBLADC, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;ADCCODEVIL, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;ADCCODEPAY&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#003366"&gt;From REFTIERMAW.REFADCPP00 where ADCCODECLI in &lt;FONT color="#FF0000"&gt;$(st_$(b))&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;NEXT&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-on-sql-query/m-p/1639067#M447047</guid>
      <dc:creator>Ayoub</dc:creator>
      <dc:date>2024-11-16T02:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Loop on sql query</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-on-sql-query/m-p/1639310#M447067</link>
      <description>&lt;P&gt;Usually you couldn't join within a loop because your added fields from the first iteration will be considered within the next iterations ...&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 06:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-on-sql-query/m-p/1639310#M447067</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-10-24T06:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loop on sql query</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-on-sql-query/m-p/1639521#M447086</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;Marcus,once again thank you for your help&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you say there's no solution for that problem ? otherwise can u suggest me something to do ..&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 13:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-on-sql-query/m-p/1639521#M447086</guid>
      <dc:creator>Ayoub</dc:creator>
      <dc:date>2019-10-24T13:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Loop on sql query</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-on-sql-query/m-p/1639573#M447090</link>
      <description>&lt;P&gt;You may load it seperately like: first load + joins then second load + joins and then concatenate the first and the second part. Without knowing your data and requirements it's difficult to say more but somehow your tried approach looked rather unusual.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 14:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-on-sql-query/m-p/1639573#M447090</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-10-24T14:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Loop on sql query</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-on-sql-query/m-p/1639589#M447091</link>
      <description>&lt;P&gt;Huge thanks to&amp;nbsp; you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Worked like magic .. i stored every iteration in deferent table and dropped the table and filters from the application and it's working &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; Thank you again&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 15:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-on-sql-query/m-p/1639589#M447091</guid>
      <dc:creator>Ayoub</dc:creator>
      <dc:date>2019-10-24T15:23:25Z</dc:date>
    </item>
  </channel>
</rss>

