<?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 CASE END SQL STATEMENT in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/CASE-END-SQL-STATEMENT/m-p/2370290#M133351</link>
    <description>Hi all, 
&lt;BR /&gt;I have the following SQL expression i would like to use in TMAP and seem to be having a little bit of trouble. 
&lt;BR /&gt;Case 
&lt;BR /&gt;When a.CT = c.Cusip THEN 'C' 
&lt;BR /&gt;When a.CF = c.Cusip THEN 'D' 
&lt;BR /&gt;End ACTIONCODE 
&lt;BR /&gt;C or D can be the output for the same field (ACTIONCODE) when either one of those conditions is met. 
&lt;BR /&gt;Does anyone have any pointers on how I can accomplish this in Talend? 
&lt;BR /&gt;Any help would be greatly appreciated! 
&lt;BR /&gt;-Chris</description>
    <pubDate>Sat, 16 Nov 2024 13:39:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:39:42Z</dc:date>
    <item>
      <title>CASE END SQL STATEMENT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CASE-END-SQL-STATEMENT/m-p/2370290#M133351</link>
      <description>Hi all, 
&lt;BR /&gt;I have the following SQL expression i would like to use in TMAP and seem to be having a little bit of trouble. 
&lt;BR /&gt;Case 
&lt;BR /&gt;When a.CT = c.Cusip THEN 'C' 
&lt;BR /&gt;When a.CF = c.Cusip THEN 'D' 
&lt;BR /&gt;End ACTIONCODE 
&lt;BR /&gt;C or D can be the output for the same field (ACTIONCODE) when either one of those conditions is met. 
&lt;BR /&gt;Does anyone have any pointers on how I can accomplish this in Talend? 
&lt;BR /&gt;Any help would be greatly appreciated! 
&lt;BR /&gt;-Chris</description>
      <pubDate>Sat, 16 Nov 2024 13:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CASE-END-SQL-STATEMENT/m-p/2370290#M133351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: CASE END SQL STATEMENT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CASE-END-SQL-STATEMENT/m-p/2370291#M133352</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Does anyone have any pointers on how I can accomplish this in Talend?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Assuming your job looks like; 
&lt;BR /&gt;tMysqlInput---row1--&amp;gt;tMap--tLogRow 
&lt;BR /&gt;type in the expression of ACTIONCODE as: 
&lt;BR /&gt;If the data type of row1.CT, row1.Cusip, row1.CF is String, try 
&lt;BR /&gt; 
&lt;PRE&gt;row1.CT.equals(row1.Cusip)?'C':(row1.CF.equals(row1.Cusip)?'D':other Value or null)&lt;/PRE&gt; 
&lt;BR /&gt;If the data type of row1.CT, row1.Cusip, row1.CF is Integer/int, try 
&lt;BR /&gt; 
&lt;PRE&gt;row1.CT==row1.Cusip)?'C':(row1.CF==row1.Cusip?'D':other Value or null)&lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 02 Dec 2009 02:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CASE-END-SQL-STATEMENT/m-p/2370291#M133352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-02T02:27:44Z</dc:date>
    </item>
  </channel>
</rss>

