<?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: How do I iterate a sql from the same db in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360360#M124965</link>
    <description>&lt;P&gt;Not the same question, the other question relates to tPostgresqlRow usage and failure.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I managed to get the job to work - thanks for your input and assistance, it did help solve the problem&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="worked.png" style="width: 731px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwNP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149146iAA5BD68B15A20A4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwNP.png" alt="0683p000009LwNP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2017 07:12:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-02T07:12:12Z</dc:date>
    <item>
      <title>How do I iterate a sql from the same db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360349#M124954</link>
      <description>&lt;P&gt;Hi community&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following scenario:&lt;/P&gt;
&lt;P&gt;Select id from db1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then iterate id to select from the same db1 source and table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have placed the following in my job&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tmysqlinput -&amp;gt; iterateflow -&amp;gt; tfixedflowinput -&amp;gt; tmysqlrow-&amp;gt; tmap-&amp;gt;tmysqloutput&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this look correct ?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360349#M124954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I iterate a sql from the same db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360350#M124955</link>
      <description>&lt;P&gt;There are many variant to achieve the same goal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it work as expected?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;alternative:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tMySQLInput -&amp;gt; tFlowToIterate -&amp;gt; tJavaFlex (just as dummy) -&amp;gt; OnComponentOk -&amp;gt; tMySQLInput -&amp;gt;tMap -&amp;gt; tMySQLOutput&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 14:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360350#M124955</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-07-31T14:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I iterate a sql from the same db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360351#M124956</link>
      <description>&lt;P&gt;Thank you, but I am trying to resolve the flow without using a conditional flow.&lt;/P&gt; 
&lt;P&gt;The tpostgresrow is not providing results, all results from the select return with null&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="account.png" style="width: 684px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvyg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156030iE12EF0686D1D9C7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvyg.png" alt="0683p000009Lvyg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 17:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360351#M124956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-31T17:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I iterate a sql from the same db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360352#M124957</link>
      <description>&lt;P&gt;1) tMySQLInput in Your original post &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) but this is not important, &amp;nbsp;could You attach tPostgreqlRow settings?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 02:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360352#M124957</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-08-01T02:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I iterate a sql from the same db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360353#M124958</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Settings for&amp;nbsp;&lt;SPAN&gt;tPostgreqlRow:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;sql:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;select distinct (account_sk) ,&lt;BR /&gt;service_manager as Service_Manager,&lt;BR /&gt;account_id as Account_ID,&lt;BR /&gt;name as master_account_name,&lt;BR /&gt;parent_account_id as parent_account_id,&lt;BR /&gt;_class as account_class,&lt;BR /&gt;--distinct(service_manager),&lt;BR /&gt;master_account_sk,&lt;BR /&gt;a12.Contact_Account_Role AS Contact_Account_Role,&lt;BR /&gt;a12.CONTACT_CELL_NUMBER AS CONTACT_CELL_NUMBER,&lt;BR /&gt;a12.CONTACT_EMAIL AS CONTACT_EMAIL,&lt;BR /&gt;a12.Contact_Employee_Flag AS Contact_Employee_Flag,&lt;BR /&gt;a12.Contact_Role AS Contact_Role,&lt;BR /&gt;a12.Contact_Type AS Contact_Type,&lt;BR /&gt;a12.Contact_Telephone_Number AS Contact_Telephone_Number,&lt;BR /&gt;a12.CONTACT_ID AS CONTACT_ID,&lt;BR /&gt;max(a12.CONTACT_FIRST_NAME || ' ' || a12.CONTACT_LAST_NAME) AS customer_contact,&lt;BR /&gt;max(a12.CONTACT_FIRST_NAME) AS CONTACT_FIRST_NAME,&lt;BR /&gt;max(a12.CONTACT_LAST_NAME) AS CONTACT_LAST_NAME,&lt;BR /&gt;a12.Contact_Status AS Contact_Status&lt;BR /&gt;from edw_dev.d_customer_account&lt;BR /&gt;join edw_dev.mdm_siebel_contacts_vw a12&lt;BR /&gt;on (account_id = a12.Contact_Account_ID)&lt;BR /&gt;where account_id = '"+((String)globalMap.get("row1.account_id"))+"'&lt;BR /&gt;and a12.Contact_Status not like 'Inactive'&lt;BR /&gt;--and a11.scd_end is null&lt;BR /&gt;and a12.Contact_Type in ('Technical Contact', '|Technical Contact', 'Buying Centre')&lt;BR /&gt;group by&lt;BR /&gt;-- account_sk,&lt;BR /&gt;account_id,&lt;BR /&gt;name,&lt;BR /&gt;a12.Contact_Account_Role,&lt;BR /&gt;a12.CONTACT_CELL_NUMBER,&lt;BR /&gt;a12.CONTACT_EMAIL,&lt;BR /&gt;a12.Contact_Employee_Flag,&lt;BR /&gt;a12.Contact_Role,&lt;BR /&gt;a12.Contact_Type,&lt;BR /&gt;a12.Contact_Telephone_Number,&lt;BR /&gt;service_manager,&lt;BR /&gt;account_sk,&lt;BR /&gt;a12.CONTACT_ID,&lt;BR /&gt;a12.Contact_Status,&lt;BR /&gt;parent_account_id,&lt;BR /&gt;_class,&lt;BR /&gt;master_account_sk ;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trow.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwHP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139746i19D638AE8414A209/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwHP.png" alt="0683p000009LwHP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 07:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360353#M124958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-01T07:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I iterate a sql from the same db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360354#M124959</link>
      <description>&lt;P&gt;I have tried the suggested approach:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="new.png" style="width: 757px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvmJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132307iCF2F78EF17D35BB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvmJ.png" alt="0683p000009LvmJ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;but as you can see no rows on the second input.&lt;/P&gt; 
&lt;P&gt;I think it is due to the select. when I hardcode the account_id the job works.&lt;/P&gt; 
&lt;P&gt;So the problem lies either in my select parameter:&amp;nbsp;&lt;SPAN&gt;where account_id = '"+((String)globalMap.get("row1.account_id"))+"'&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;or where the conditional line needs to pass the account_id parameter.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 08:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360354#M124959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-01T08:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I iterate a sql from the same db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360355#M124960</link>
      <description>&lt;P&gt;first of all - make select same with schema&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;- or reduce number and order of columns&lt;/P&gt; 
&lt;P&gt;- or add columns to the schema&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;in schema - 3 column&lt;/P&gt; 
&lt;P&gt;in query - much more&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;construction is work, but this is could be (could be) a reason&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 14:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360355#M124960</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-08-01T14:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I iterate a sql from the same db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360356#M124961</link>
      <description>&lt;P&gt;I get the same result regardless of the number of columns&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360356#M124961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-01T15:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I iterate a sql from the same db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360357#M124962</link>
      <description>&lt;P&gt;do You have space between:&lt;/P&gt;&lt;PRE&gt;where account_id = '"+((String)globalMap.get("row1.account_id"))+"'
and a12.Contact_Status not like 'Inactive'&lt;/PRE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360357#M124962</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-08-01T15:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I iterate a sql from the same db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360358#M124963</link>
      <description>&lt;P&gt;Sorry I am not sure I understand&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is my last used code exactly with spacing:&lt;/P&gt; 
&lt;PRE&gt;select  distinct (account_sk) ,
  service_manager as Service_Manager,
  account_id as Account_ID,    
  name as master_account_name,
 	parent_account_id as parent_account_id,
	_class as account_class,
  --distinct(service_manager),
  master_account_sk,
  a12.Contact_Account_Role AS Contact_Account_Role,
	a12.CONTACT_CELL_NUMBER AS CONTACT_CELL_NUMBER,
	a12.CONTACT_EMAIL AS CONTACT_EMAIL,
	a12.Contact_Employee_Flag AS Contact_Employee_Flag,
	a12.Contact_Role AS Contact_Role,
	a12.Contact_Type AS Contact_Type,
	a12.Contact_Telephone_Number AS Contact_Telephone_Number,
	a12.CONTACT_ID AS CONTACT_ID,
	max(a12.CONTACT_FIRST_NAME || ' ' || a12.CONTACT_LAST_NAME) AS customer_contact,
	max(a12.CONTACT_FIRST_NAME) AS CONTACT_FIRST_NAME,
	max(a12.CONTACT_LAST_NAME) AS CONTACT_LAST_NAME,
	a12.Contact_Status AS Contact_Status
	 from edw_dev.d_customer_account
 	join	edw_dev.mdm_siebel_contacts_vw	a12
	  on 	(account_id = a12.Contact_Account_ID)
	  where account_id in ( '"+((String)globalMap.get("row1.account_id"))+"' )
	  and a12.Contact_Status not like 'Inactive'
	  --and a11.scd_end is null
    and a12.Contact_Type in ('Technical Contact', '|Technical Contact', 'Buying Centre')
	  group by	
	 -- account_sk,
	  account_id,
	  name,
	a12.Contact_Account_Role,
	a12.CONTACT_CELL_NUMBER,
	a12.CONTACT_EMAIL,
	a12.Contact_Employee_Flag,
	a12.Contact_Role,
	a12.Contact_Type,
	a12.Contact_Telephone_Number,
	service_manager,
	account_sk,
	a12.CONTACT_ID,
	a12.Contact_Status,
	parent_account_id,
	_class,
	master_account_sk  ;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360358#M124963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-01T15:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I iterate a sql from the same db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360359#M124964</link>
      <description>&lt;P&gt;check the answer for Your other question&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 01:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360359#M124964</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-08-02T01:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I iterate a sql from the same db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360360#M124965</link>
      <description>&lt;P&gt;Not the same question, the other question relates to tPostgresqlRow usage and failure.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I managed to get the job to work - thanks for your input and assistance, it did help solve the problem&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="worked.png" style="width: 731px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwNP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149146iAA5BD68B15A20A4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwNP.png" alt="0683p000009LwNP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 07:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-a-sql-from-the-same-db/m-p/2360360#M124965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-02T07:12:12Z</dc:date>
    </item>
  </channel>
</rss>

