<?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 Talend If Else Statement tMap tJavaRow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-If-Else-Statement-tMap-tJavaRow/m-p/2471325#M141001</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a job in which when i query the DB i get output OF 2 columns as below:&lt;/P&gt;
&lt;P&gt;DAY_BEGIN- 20200101&lt;/P&gt;
&lt;P&gt;DAY_END-20200102&lt;/P&gt;
&lt;P&gt;YEAR-2020&lt;/P&gt;
&lt;P&gt;MONTH_BEGIN- 01&lt;/P&gt;
&lt;P&gt;MONTH_END-02&lt;/P&gt;
&lt;P&gt;i would like to construct this statement from this DB input&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"select * from ABC where&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAY between '20200101' and '&lt;SPAN&gt;20200102'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and&amp;nbsp;&lt;/SPAN&gt;YEAR = '2020'&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;MONTH between '01' and '&lt;SPAN&gt;02' ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Basically when there are BEGIN and end in prefixes , i would like to use BETWEEN statement and pass values and when there is only single value e.g. YEAR i would like to pass = in statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please recommend what would be better TMAP or TJAVAROW and the solution for java code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2024 23:27:44 GMT</pubDate>
    <dc:creator>talend777</dc:creator>
    <dc:date>2024-07-17T23:27:44Z</dc:date>
    <item>
      <title>Talend If Else Statement tMap tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-If-Else-Statement-tMap-tJavaRow/m-p/2471325#M141001</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a job in which when i query the DB i get output OF 2 columns as below:&lt;/P&gt;
&lt;P&gt;DAY_BEGIN- 20200101&lt;/P&gt;
&lt;P&gt;DAY_END-20200102&lt;/P&gt;
&lt;P&gt;YEAR-2020&lt;/P&gt;
&lt;P&gt;MONTH_BEGIN- 01&lt;/P&gt;
&lt;P&gt;MONTH_END-02&lt;/P&gt;
&lt;P&gt;i would like to construct this statement from this DB input&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"select * from ABC where&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAY between '20200101' and '&lt;SPAN&gt;20200102'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and&amp;nbsp;&lt;/SPAN&gt;YEAR = '2020'&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;MONTH between '01' and '&lt;SPAN&gt;02' ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Basically when there are BEGIN and end in prefixes , i would like to use BETWEEN statement and pass values and when there is only single value e.g. YEAR i would like to pass = in statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please recommend what would be better TMAP or TJAVAROW and the solution for java code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 23:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-If-Else-Statement-tMap-tJavaRow/m-p/2471325#M141001</guid>
      <dc:creator>talend777</dc:creator>
      <dc:date>2024-07-17T23:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Talend If Else Statement tMap tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-If-Else-Statement-tMap-tJavaRow/m-p/2471348#M141003</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I think I don't understand your question well, you want to extract the values like&amp;nbsp;&lt;SPAN&gt;20200101,&amp;nbsp;20200102 from the output of one query, and pass these value to another query? I would suggest you to use tJavaRow to hard code to parse the input rows and construct different query based on different input data, and store the query into context variable for used later on other tDBInput component.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Shicong&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 04:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-If-Else-Statement-tMap-tJavaRow/m-p/2471348#M141003</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-07-18T04:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Talend If Else Statement tMap tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-If-Else-Statement-tMap-tJavaRow/m-p/2471498#M141006</link>
      <description>&lt;P&gt;Thank you Shicong,&lt;/P&gt;
&lt;P&gt;Yes , i would e&lt;SPAN&gt;xtract the values like&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;20200101,&amp;nbsp;20200102 from the output of one query, and pass these value to another query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am trying to find sample code of tjavarow where&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;i can get values of&amp;nbsp;20200101,&amp;nbsp;20200102&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;truncate DAY_BEGIN, DAY_END to DAY,&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;get values of&amp;nbsp;DAY_BEGIN and DAY_END&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;form a statement DAY BETWEEN (value of DAY_BEGIN) AND (value of DAY_end)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 18 Jul 2024 12:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-If-Else-Statement-tMap-tJavaRow/m-p/2471498#M141006</guid>
      <dc:creator>talend777</dc:creator>
      <dc:date>2024-07-18T12:30:55Z</dc:date>
    </item>
  </channel>
</rss>

