<?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 Oracle Decode Function. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276623#M52652</link>
    <description>Bonjour,
&lt;BR /&gt;I'm new to TOS.
&lt;BR /&gt;How can I achieve the equivalent of Oracle's Decode Function within tMap? What is the best way to achieve this in TOS?
&lt;BR /&gt;Thanks.
&lt;BR /&gt;PM</description>
    <pubDate>Sat, 16 Nov 2024 14:20:55 GMT</pubDate>
    <dc:creator>ptremblay</dc:creator>
    <dc:date>2024-11-16T14:20:55Z</dc:date>
    <item>
      <title>Oracle Decode Function.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276623#M52652</link>
      <description>Bonjour,
&lt;BR /&gt;I'm new to TOS.
&lt;BR /&gt;How can I achieve the equivalent of Oracle's Decode Function within tMap? What is the best way to achieve this in TOS?
&lt;BR /&gt;Thanks.
&lt;BR /&gt;PM</description>
      <pubDate>Sat, 16 Nov 2024 14:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276623#M52652</guid>
      <dc:creator>ptremblay</dc:creator>
      <dc:date>2024-11-16T14:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Decode Function.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276624#M52653</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;How can I achieve the equivalent of Oracle's Decode Function within tMap? What is the best way to achieve this in TOS?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Type in the code below in expression filed of tMap 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;for example) 
&lt;BR /&gt; 
&lt;PRE&gt;row1.supplier_id==1?value1:(row1.supplier_id==2?value2:value3)&lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 05 Jun 2008 04:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276624#M52653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-05T04:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Decode Function.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276625#M52654</link>
      <description>Or in Perl:&lt;BR /&gt;&lt;PRE&gt;$row1 == 1&lt;BR /&gt;    ? 'value1'&lt;BR /&gt;    : $row1 == 2&lt;BR /&gt;        ? 'value2'&lt;BR /&gt;        : 'other'&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jun 2008 08:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276625#M52654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-05T08:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Decode Function.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276626#M52655</link>
      <description>How can I used following condition in TOS&lt;BR /&gt;IIF(upper(STANDING_TAX)= 'GOOD' AND upper(STANDING_RA) = 'GOOD' AND upper(STANDING_OTHER) = 'GOOD' ,'1','2')&lt;BR /&gt;I have output field GOODSTD, but I want to check with 3 fields which are shown in above condition.</description>
      <pubDate>Tue, 08 Apr 2014 14:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276626#M52655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-08T14:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Decode Function.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276627#M52656</link>
      <description>Hi rahul.nawale 
&lt;BR /&gt;If I understand you correctly, the original expression indicates the result will be "1" if all of the three conditions match, otherwise, it is "2", right? 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 08 Apr 2014 15:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276627#M52656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-08T15:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Decode Function.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276628#M52657</link>
      <description>yes shong. You are right.</description>
      <pubDate>Tue, 08 Apr 2014 16:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276628#M52657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-08T16:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Decode Function.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276629#M52658</link>
      <description>Hi... If you're doing this in tMap which accepts only ternary operators, it'd be:&lt;BR /&gt;STANDING_TAX.toUpperCase().equals("GOOD") &amp;amp;&amp;amp; STANDING_RA.toUpperCase().equals("GOOD") &amp;amp;&amp;amp; STANDING_OTHER.toUpperCase().equals("GOOD") ? "1" : "2"&lt;BR /&gt;If in tJava that accepts regular if-then-else, it'd be:&lt;BR /&gt;&lt;BR /&gt;String STANDING_TAX = "";&lt;BR /&gt;String STANDING_RA = "";&lt;BR /&gt;String STANDING_OTHER = "";&lt;BR /&gt;String Output = "";&lt;BR /&gt;if (&lt;BR /&gt;	STANDING_TAX.toUpperCase().equals("GOOD") &amp;amp;&amp;amp; 	STANDING_RA.toUpperCase().equals("GOOD") &amp;amp;&amp;amp; &lt;BR /&gt;	STANDING_OTHER.toUpperCase().equals("GOOD")&lt;BR /&gt;	)&lt;BR /&gt;	{&lt;BR /&gt;	Output = "1";&lt;BR /&gt;	}&lt;BR /&gt;else &lt;BR /&gt;	{&lt;BR /&gt;	Output = "2";&lt;BR /&gt;	};&lt;BR /&gt;System.out.println("Output is... " + Output);</description>
      <pubDate>Tue, 08 Apr 2014 16:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276629#M52658</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-04-08T16:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Decode Function.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276630#M52659</link>
      <description>Thanks willm, its working.</description>
      <pubDate>Tue, 08 Apr 2014 16:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276630#M52659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-08T16:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Decode Function.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276631#M52660</link>
      <description>Glad to hear... 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 08 Apr 2014 16:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Decode-Function/m-p/2276631#M52660</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-04-08T16:49:12Z</dc:date>
    </item>
  </channel>
</rss>

