<?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 select count(*) from tablename where key = &amp;lt;parameter&amp;gt; in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263714#M43786</link>
    <description>&lt;P&gt;I want to do this simple query in Talend, but until now (2 days later) I haven't make this query in Talend working. What I want is the amout of records with a where clause with only one parameter. This parameter is available in context, and I want to work with the result, the amout of records futher on in the flow. How can I do this.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am new within Talend so I think it is an simple question four the experienced users among us but not fot me please help !!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:04:31 GMT</pubDate>
    <dc:creator>Frans1</dc:creator>
    <dc:date>2024-11-16T04:04:31Z</dc:date>
    <item>
      <title>select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263714#M43786</link>
      <description>&lt;P&gt;I want to do this simple query in Talend, but until now (2 days later) I haven't make this query in Talend working. What I want is the amout of records with a where clause with only one parameter. This parameter is available in context, and I want to work with the result, the amout of records futher on in the flow. How can I do this.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am new within Talend so I think it is an simple question four the experienced users among us but not fot me please help !!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263714#M43786</guid>
      <dc:creator>Frans1</dc:creator>
      <dc:date>2024-11-16T04:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263715#M43787</link>
      <description>Hi 
&lt;BR /&gt;Quick question, what is the data type of parameter? Date or Integer or String? 
&lt;BR /&gt;Assuming you are using Mysql database, you can use a tMysqlInput component to execute this query, eg: 
&lt;BR /&gt;"select count(*) from tableName where key="+context.parameterName 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong 
&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Nov 2019 09:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263715#M43787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-20T09:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263716#M43788</link>
      <description>&lt;P&gt;What a quick response great !!!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We are using a Postgres database and the parameter is a string. &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is what I use at this moment:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx8j"&gt;PostgresInput.docx&lt;/A&gt;</description>
      <pubDate>Wed, 20 Nov 2019 10:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263716#M43788</guid>
      <dc:creator>Frans1</dc:creator>
      <dc:date>2019-11-20T10:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263717#M43789</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I could see that equal to character is missing in your query.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 756px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M83G.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132971i9B9CDC5A1E8E0176/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M83G.png" alt="0683p000009M83G.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also you are using escape character and you have not closed the original query.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;select count(*) as AANTRECS from tablename where cipversienummer =\""+context.variable+"\""&lt;/PRE&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 14:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263717#M43789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-20T14:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263718#M43790</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;I have changed the statement as you suggested I just added one " at the begin because otherwise I get errors, this is the SQL-statement what is executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"select count(*) as AANTRECS from ldf.ibz_cip_cipersinformatie where cipversienummer =\" "+context.VRSNUM +"\""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I get the next response with the error that 010108 is not a column. '010108' is the value of context.VRSNUM and that is what want but at runtime I get an error. How can I solve this, so that the query will be excuted with the value from context.VRSNUM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Starting job ibz_cipers_read_versieinformatie1 at 10:44 21/11/2019.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[statistics] connecting to socket on port 3498&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[statistics] connected&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;tContextLoad_4 set key "VRSNUM" with value "010108"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Exception in component tPostgresqlInput_2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;org.postgresql.util.PSQLException: ERROR: column " 010108" does not exist&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1592)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1327)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:192)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:336)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:235)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.tPostgresqlInput_2Process(ibz_cipers_read_versieinformatie1.java:4142)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.tMsgBox_2Process(ibz_cipers_read_versieinformatie1.java:3110)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.tMsgBox_1Process(ibz_cipers_read_versieinformatie1.java:2989)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.tAS400Input_1Process(ibz_cipers_read_versieinformatie1.java:2846)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.tFileInputDelimited_2Process(ibz_cipers_read_versieinformatie1.java:1944)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.tFileInputDelimited_1Process(ibz_cipers_read_versieinformatie1.java:1323)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.runJobInTOS(ibz_cipers_read_versieinformatie1.java:5723)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.main(ibz_cipers_read_versieinformatie1.java:5432)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[statistics] disconnected&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Job ibz_cipers_read_versieinformatie1 ended at 10:44 21/11/2019. [exit code=1]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frans&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 09:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263718#M43790</guid>
      <dc:creator>Frans1</dc:creator>
      <dc:date>2019-11-21T09:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263719#M43791</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt; 
&lt;P&gt;I have changed the statement as you suggested I just added one " at the begin because otherwise I get errors, this is the SQL-statement what is executed.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"select count(*) as AANTRECS from ldf.ibz_cip_cipersinformatie where cipversienummer =\" "+context.VRSNUM +"\""&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And I get the next response with the error that 010108 is not a column. '010108' is the value of context.VRSNUM and that is what want but at runtime I get an error. How can I solve this, so that the query will be excuted with the value from context.VRSNUM&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;Starting job ibz_cipers_read_versieinformatie1 at 10:44 21/11/2019.&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;[statistics] connecting to socket on port 3498&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[statistics] connected&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;tContextLoad_4 set key "VRSNUM" with value "010108"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Exception in component tPostgresqlInput_2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;org.postgresql.util.PSQLException: ERROR: column " 010108" does not exist&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1592)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1327)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:192)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:336)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:235)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.tPostgresqlInput_2Process(ibz_cipers_read_versieinformatie1.java:4142)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.tMsgBox_2Process(ibz_cipers_read_versieinformatie1.java:3110)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.tMsgBox_1Process(ibz_cipers_read_versieinformatie1.java:2989)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.tAS400Input_1Process(ibz_cipers_read_versieinformatie1.java:2846)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.tFileInputDelimited_2Process(ibz_cipers_read_versieinformatie1.java:1944)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.tFileInputDelimited_1Process(ibz_cipers_read_versieinformatie1.java:1323)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.runJobInTOS(ibz_cipers_read_versieinformatie1.java:5723)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at irapportage.ibz_cipers_read_versieinformatie1_0_1.ibz_cipers_read_versieinformatie1.main(ibz_cipers_read_versieinformatie1.java:5432)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[statistics] disconnected&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Job ibz_cipers_read_versieinformatie1 ended at 10:44 21/11/2019. [exit code=1]&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Frans&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8DA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132300i3B5DB6BDDA567F81/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8DA.png" alt="0683p000009M8DA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 14:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263719#M43791</guid>
      <dc:creator>Frans1</dc:creator>
      <dc:date>2019-11-21T14:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263720#M43792</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;It seems you have not added the escape character before the starting of the string. Could you please add it as shown in my previous post?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Please also try to print and see the entire select statement using System.out function in a tjava to make sure that the select statement is correctly generated.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;DIV&gt;
  Warm Regards, 
&lt;/DIV&gt; 
&lt;DIV&gt;
  Nikhil Thampi 
&lt;/DIV&gt; 
&lt;DIV&gt;
  &amp;nbsp; 
&lt;/DIV&gt; 
&lt;DIV&gt;
  Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 
&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Nov 2019 15:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263720#M43792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-21T15:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263721#M43793</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I think i have solved the problem.&lt;/P&gt; 
&lt;P&gt;"select count(*) as AANTRECS from ldf.ibz_cip_cipersinformatie where cipversienummer = '" + context.VRSNUM + "'"&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;result in on runtime:&lt;/P&gt; 
&lt;P&gt;select count(*) as AANTRECS from ldf.ibz_cip_cipersinformatie where cipversienummer = '010108'&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and the query seems to be working, but where can I find the result of the query?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I expected this in context.AANTRECS but this still 'null' after the excecute, how can I acces the value of the result of the query I should expect AANTRECS&lt;/P&gt; 
&lt;P&gt;but this still 'null' after the query but to contence shoud be 1 or higher&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you in advance&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Frans&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&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="flow.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7ye.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147464i55DAC6B9DC1AF327/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7ye.png" alt="0683p000009M7ye.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 14:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263721#M43793</guid>
      <dc:creator>Frans1</dc:creator>
      <dc:date>2019-11-22T14:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263722#M43794</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;You are right. I overlooked it. Ideally you need to use single quotes.&amp;nbsp; Now coming to your current issue, I would recommend to add a tLogrow after tDBInput to check whether data is coming out from DB component. Once its, confirmed, you can check whether you are passing the data properly. You do not need any component like tMsgBox and tJava between Context Load and tMap. Once the data is mapped correctly, it will be loaded to corresponding context variable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 15:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263722#M43794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-22T15:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263723#M43795</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;First of all sorry for all the questions !!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have added tLogRow and then I see a result from the query, in the picture is this 0 and that is correct. As you can see I have added tContextload and after that I want to execute the next job when the value of context.AANTRECS = 0 (null). But that isn't working this is component value of the if-statement after the contextload:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;context.AANTRECS.equals('0')&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can you tell me what I'am doing wrong?&amp;nbsp;&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="2019-11-25_15-03-37.png" style="width: 983px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8FQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128166i72A254528AFB424D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8FQ.png" alt="0683p000009M8FQ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-25_15-09-31.png" style="width: 959px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8FV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144119iD80075B4C14F8468/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8FV.png" alt="0683p000009M8FV.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-25_15-10-41.png" style="width: 982px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7eM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139801iC3FEF7C7B43559CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7eM.png" alt="0683p000009M7eM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263723#M43795</guid>
      <dc:creator>Frans1</dc:creator>
      <dc:date>2019-11-25T14:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263724#M43796</link>
      <description>&lt;P&gt;Nikhil,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have added an other picture witg information from a debug run, may be this will help.&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Frans&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-25_15-16-20.png" style="width: 946px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7Sd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147466iC6FA05282D2C00B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7Sd.png" alt="0683p000009M7Sd.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263724#M43796</guid>
      <dc:creator>Frans1</dc:creator>
      <dc:date>2019-11-25T14:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263725#M43797</link>
      <description>&lt;P&gt;Nikhil,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Herewith more inofrmation, I think i saw some information wrong. In the query I do a 'select count(*) from ....' so I expect only 1 (one) colomn.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As you can see in the picture I think al the coloms are returned + the extra count(*) field in the name of AANTRECS. This is not what I expected and may this is the course of the problem?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-25_15-37-34.png" style="width: 944px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8Fa.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144208iE8AE0B1A90796923/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8Fa.png" alt="0683p000009M8Fa.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263725#M43797</guid>
      <dc:creator>Frans1</dc:creator>
      <dc:date>2019-11-25T14:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263726#M43798</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please try like below?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 830px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8Ff.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129735i71E48F9E2C45E56A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8Ff.png" alt="0683p000009M8Ff.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I believe you are using On Component Ok instead of On SubJob Ok which is trigger the job before the previous job is getting completed fully. Please use On Component Ok only if you need (like in the case of condition check in iterative format).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263726#M43798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-25T14:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263727#M43799</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And what must I place in the 'IF condition' after tJava ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;context.AANTRECS.equals ("null") or&amp;nbsp;context.AANTRECS.equals ("0")&amp;nbsp; or&amp;nbsp;context.AANTRECS.equals ('0') doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect that in tJava something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;context.AANTRECS = &amp;lt; result from query AANTRECS&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;has to be placed because the value of AANRECS from the query has to be put in the variable&amp;nbsp; 'context.AANTRECS'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 15:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263727#M43799</guid>
      <dc:creator>Frans1</dc:creator>
      <dc:date>2019-11-25T15:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263728#M43800</link>
      <description>&lt;P&gt;I don't think a simple query like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select count(*) as context.AANTRECS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;will work in Talend !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is very dissapointing for me and my collegae's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 11:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263728#M43800</guid>
      <dc:creator>Frans1</dc:creator>
      <dc:date>2019-11-26T11:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263729#M43801</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Unfortunately you are thinking that its not possible in Talend without going through Talend learning path.&amp;nbsp;There are lot of customers who do much complex things using Talend in seamless fashion. I would recommend to learn Talend in a structured way using Talend academy if you are not able to scale quickly using help documents alone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Coming to your earlier query, since the context variable is Integer, you will have to use Integer operations within if condition. Right now, you are trying String operations in if conditions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 00:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263729#M43801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-27T00:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263730#M43802</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;
&lt;P&gt;I have already have used the integer and String 'variant' and I know that in the example this is wrong. But my problem is that i can't validate the value of AANTRECS after the query is executed. With tLogrow i can see the result of the query but I want to use this result for a further decision so this has to put in context.AANTRES. I expect this value in context.AANTRECS but in debug-mode the value is always 'null' even if the result of count(*) is &amp;gt; zero. Is there an otherway the determine if a record already exits in a table, i have tried it with 'component error' and 'subjob-error' but that seems not to be working as I expect it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you're wright tah I have, and will, follow the courses of Talend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best regards,&lt;/P&gt;
&lt;P&gt;Frans&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 13:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263730#M43802</guid>
      <dc:creator>Frans1</dc:creator>
      <dc:date>2019-11-27T13:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263731#M43803</link>
      <description>Hi Frans 
&lt;BR /&gt;If you want to specify the query result to a context variable, we usually do it on tJavaRow component (DO NOT use tJava component), eg:
&lt;BR /&gt;tPostgresqlInput--main--tJavaRow...
&lt;BR /&gt;
&lt;BR /&gt;on tJavaRow:
&lt;BR /&gt;context.AANTRES=input_row.columnName;
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 28 Nov 2019 01:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263731#M43803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-28T01:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: select count(*) from tablename where key = &lt;parameter&gt;</title>
      <link>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263732#M43804</link>
      <description>&lt;P&gt;Hi Shong / Nikhil,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is what needed great !!!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can you advise me what course I can follow to learn more about Talend?&lt;/P&gt; 
&lt;P&gt;As you may have noticed I have a lot of experience but I am new with Talend so please advice.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;many regards for all your help&lt;/P&gt; 
&lt;P&gt;Frans&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 11:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/select-count-from-tablename-where-key-lt-parameter-gt/m-p/2263732#M43804</guid>
      <dc:creator>Frans1</dc:creator>
      <dc:date>2019-12-02T11:03:27Z</dc:date>
    </item>
  </channel>
</rss>

