<?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: I need to convert the below SQL case statement into if\else for talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348107#M115276</link>
    <description>&lt;P&gt;My source is excel file. I have sql logic. i need to create same sql expression in talend using tmap.&lt;/P&gt;
&lt;P&gt;Sales E&lt;SPAN&gt;xcel and drop it to the design work space and select tfileInputExcel option from pop window then am&amp;nbsp;using tmap component. I dragged&amp;nbsp;all columns into output excel file side then&amp;nbsp;&lt;/SPAN&gt;I Just created new column as bundled then I wrote if \ else Statement. the logic is given below&lt;/P&gt;
&lt;P class="western"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="western"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;((row8.Sales == &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"others"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt; &amp;amp;&amp;amp; row9.Bundled== &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"Bundled"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;) ? &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"Bundled"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt; : ((row8.Sales) == &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"others" &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;? &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"Discounted"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt; : &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="western" align="left"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;((row8.Sales == &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"others"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt; &amp;amp;&amp;amp; row9.Bundled== &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"Bundled"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;) ? &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"Bundled"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt; :&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="western"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;((row8.Sales)))))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="western"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="western"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;Above logic is not working. am getting error&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2017 09:03:39 GMT</pubDate>
    <dc:creator>RAJ6</dc:creator>
    <dc:date>2017-07-25T09:03:39Z</dc:date>
    <item>
      <title>I need to convert the below SQL case statement into if\else for talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348105#M115274</link>
      <description>&lt;P&gt;Hi Talend Folks,&lt;/P&gt;
&lt;P&gt;i need your help. could you please tell me. how to convert the below SQL case statement into if\else using tmap components for talend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(case&lt;BR /&gt;when&lt;BR /&gt;(case&lt;BR /&gt;when t1.Sales = 'others' and t2.Bundled = 'Bundled'&lt;BR /&gt;then 'Bundled'&lt;BR /&gt;else t1.Sales end) = 'others'&lt;BR /&gt;then 'Discounted'&lt;/P&gt;
&lt;P&gt;else&lt;BR /&gt;(case&lt;BR /&gt;when t1.Sales = 'others' and t2.Bundled = 'Bundled'&lt;BR /&gt;then 'Bundled'&lt;BR /&gt;else t1.Sales end)&lt;BR /&gt;end) AS Bundle&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 06:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348105#M115274</guid>
      <dc:creator>RAJ6</dc:creator>
      <dc:date>2017-07-25T06:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: I need to convert the below SQL case statement into if\else for talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348106#M115275</link>
      <description>&lt;P&gt;Can you share the flow schema?&lt;/P&gt;&lt;P&gt;Is only 1 flow or 2?&lt;/P&gt;&lt;P&gt;Also give a sample input data with expected result.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 08:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348106#M115275</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-07-25T08:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: I need to convert the below SQL case statement into if\else for talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348107#M115276</link>
      <description>&lt;P&gt;My source is excel file. I have sql logic. i need to create same sql expression in talend using tmap.&lt;/P&gt;
&lt;P&gt;Sales E&lt;SPAN&gt;xcel and drop it to the design work space and select tfileInputExcel option from pop window then am&amp;nbsp;using tmap component. I dragged&amp;nbsp;all columns into output excel file side then&amp;nbsp;&lt;/SPAN&gt;I Just created new column as bundled then I wrote if \ else Statement. the logic is given below&lt;/P&gt;
&lt;P class="western"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="western"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;((row8.Sales == &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"others"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt; &amp;amp;&amp;amp; row9.Bundled== &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"Bundled"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;) ? &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"Bundled"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt; : ((row8.Sales) == &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"others" &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;? &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"Discounted"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt; : &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="western" align="left"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;((row8.Sales == &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"others"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt; &amp;amp;&amp;amp; row9.Bundled== &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"Bundled"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;) ? &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2a00ff"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;"Bundled"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt; :&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="western"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;((row8.Sales)))))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="western"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="western"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New, serif"&gt;&lt;FONT size="2"&gt;Above logic is not working. am getting error&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 09:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348107#M115276</guid>
      <dc:creator>RAJ6</dc:creator>
      <dc:date>2017-07-25T09:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: I need to convert the below SQL case statement into if\else for talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348108#M115277</link>
      <description>&lt;P&gt;1st, don't use "==" to compare strings, use String.equals method or&amp;nbsp;&lt;SPAN&gt;String.equalsIgnoreCase instead giving:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;"others".equals(row8.Sales)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;and so on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2nd, rethink the logic, you have twice the same test (row8.Sales == "others" &amp;amp;&amp;amp; row9.Bundled == "Bundled") which&amp;nbsp;cannot occurs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 13:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348108#M115277</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-07-25T13:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: I need to convert the below SQL case statement into if\else for talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348109#M115278</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use condition statement in tMap :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;row1.myKey.equals("FirstValue")?1:0&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which allow you to do your query in the variable window and get the result in the tMap output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Med&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 15:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348109#M115278</guid>
      <dc:creator>med1</dc:creator>
      <dc:date>2017-07-25T15:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: I need to convert the below SQL case statement into if\else for talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348110#M115279</link>
      <description>&lt;P&gt;Hi&amp;nbsp; All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;i need to convert the below case statement in talend&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CASE WHEN mcw_qualitypot_prod_event_deduped.qualitypot_prod_task_type&amp;nbsp; ="IMAGE_REVIEW"&lt;BR /&gt;AND mcw_qualitypot_prod_event_deduped.qualitypot_prod_error :: text ='incorrectRejected'&lt;BR /&gt;THEN count(&lt;BR /&gt;mcw_qualitypot_prod_event_deduped.qualitypot_prod_error&lt;BR /&gt;) ELSE NULL END AS quality_incorrectrejectedpots,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please provide solution for the above requirement&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 07:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348110#M115279</guid>
      <dc:creator>genupula</dc:creator>
      <dc:date>2020-01-23T07:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: I need to convert the below SQL case statement into if\else for talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348111#M115280</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQlBAAW"&gt;@Shekar_genupula&lt;/A&gt;&amp;nbsp;if the answer in this post is not sufficient for your case, open a new post.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 07:49:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348111#M115280</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-01-23T07:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: I need to convert the below SQL case statement into if\else for talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348112#M115281</link>
      <description>&lt;P&gt;i have created new post&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vClltCAC#M116468" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/need-to-convert-below-case-statement-in-talend/m-p/212042#M116468&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 07:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/I-need-to-convert-the-below-SQL-case-statement-into-if-else-for/m-p/2348112#M115281</guid>
      <dc:creator>genupula</dc:creator>
      <dc:date>2020-01-23T07:59:51Z</dc:date>
    </item>
  </channel>
</rss>

