<?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: selecting table from mysql based on date condition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314712#M85451</link>
    <description>&lt;P&gt;@Vrushabh Malbari​&amp;nbsp;, Maybe I don't understand your requirement well, if you don't use context variable or global variable, how do you pass the value to the query at runtime? Can you explain what is the behavior you expect in dynamic way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2022 02:04:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-27T02:04:55Z</dc:date>
    <item>
      <title>selecting table from mysql based on date condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314705#M85444</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to retrieve the data from mysql table based on date 2022-07-24 in dynamic way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from table where loaddate= '2022-07-24'(need to update with dynamic)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what need to use here to go with dynamic way and I dont want to use context need to use in query only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 16:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314705#M85444</guid>
      <dc:creator>BA621858188</dc:creator>
      <dc:date>2022-07-25T16:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: selecting table from mysql based on date condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314706#M85445</link>
      <description>&lt;P&gt;Using context variable and update the value of context variable dynamically in the job.  eg:&lt;/P&gt;&lt;P&gt;"select * from table where loaddate= '+context.loaddate+"'"&lt;/P&gt;&lt;P&gt;before the subjob starting with tMysqlInput, you can update the value of context variable dynamically on a tJava, eg:&lt;/P&gt;&lt;P&gt;tJava&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;tMysqlInput...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tJava:&lt;/P&gt;&lt;P&gt;context.loadate=TalendDate.formatDate("yyyy-MM-dd",TalendDate.getCurrentDate());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//TalendDate.getCurrentDate() returns the current date, how/where does the loaddate come from in your case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 03:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314706#M85445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-26T03:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: selecting table from mysql based on date condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314707#M85446</link>
      <description>&lt;P&gt;I'm having the same problem as the others.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 06:05:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314707#M85446</guid>
      <dc:creator>NCrawford1658815487</dc:creator>
      <dc:date>2022-07-26T06:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: selecting table from mysql based on date condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314708#M85447</link>
      <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if we want to do at DB component level what we can add like you have mentioned to have context parameter.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any alternate way other than context param?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 06:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314708#M85447</guid>
      <dc:creator>BA621858188</dc:creator>
      <dc:date>2022-07-26T06:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: selecting table from mysql based on date condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314709#M85448</link>
      <description>&lt;P&gt;are you able to do filter in DB itself using dynamic way.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 06:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314709#M85448</guid>
      <dc:creator>BA621858188</dc:creator>
      <dc:date>2022-07-26T06:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: selecting table from mysql based on date condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314710#M85449</link>
      <description>&lt;P&gt;what do you mean 'at DB component level? provide the value by user who run the job during the job execution? or load the value from somewhere?​&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 07:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314710#M85449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-26T07:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: selecting table from mysql based on date condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314711#M85450</link>
      <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tdbinput where I am using mysql conn and below query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select * from table where loaddate='&amp;lt;date&amp;gt;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using hardcode value as of now but wanted to use the date in dynamic way but without using the context value.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 08:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314711#M85450</guid>
      <dc:creator>BA621858188</dc:creator>
      <dc:date>2022-07-26T08:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: selecting table from mysql based on date condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314712#M85451</link>
      <description>&lt;P&gt;@Vrushabh Malbari​&amp;nbsp;, Maybe I don't understand your requirement well, if you don't use context variable or global variable, how do you pass the value to the query at runtime? Can you explain what is the behavior you expect in dynamic way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 02:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/selecting-table-from-mysql-based-on-date-condition/m-p/2314712#M85451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-27T02:04:55Z</dc:date>
    </item>
  </channel>
</rss>

