<?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: Relational Funtions in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Relational-Funtions/m-p/2240876#M28209</link>
    <description>Below link explains 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/reader/nXPtKhielAtSqFD6_f7~OQ/u5~64RfyDtd7PaXNIiefOg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/nXPtKhielAtSqFD6_f7~OQ/u5~64RfyDtd7PaXNIiefOg&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;expression means , 
&lt;BR /&gt; 
&lt;BR /&gt;if STD_DT is null then 000 else 
&lt;BR /&gt;difference of days ( in Millisecond) between visitdate and Start_dt.</description>
    <pubDate>Mon, 04 Feb 2019 10:11:12 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2019-02-04T10:11:12Z</dc:date>
    <item>
      <title>Relational Funtions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Relational-Funtions/m-p/2240874#M28207</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;Could any one please let me know, How to use these functions with any small scenario.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;Relational.ISNULL(null)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;Relational.NOT(true)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;and also please see this below logic which i have seen in previous jobs and i didn't understood why they used this expression&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;!Relational.ISNULL(out.START_DT)?(TalendDate.diffDate(out.START_DT, out.visitdate)):000&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 09:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Relational-Funtions/m-p/2240874#M28207</guid>
      <dc:creator>yashfreaky</dc:creator>
      <dc:date>2019-02-04T09:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Relational Funtions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Relational-Funtions/m-p/2240875#M28208</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPD5AAO"&gt;@yashfreaky&lt;/A&gt;&amp;nbsp;,check the below links.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.talend.com/reader/mhqCkTBnin7IXmJBUJoocQ/5qboCU~1NO4j7aF9JtCWNg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/mhqCkTBnin7IXmJBUJoocQ/5qboCU~1NO4j7aF9JtCWNg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 10:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Relational-Funtions/m-p/2240875#M28208</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-02-04T10:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Relational Funtions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Relational-Funtions/m-p/2240876#M28209</link>
      <description>Below link explains 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/reader/nXPtKhielAtSqFD6_f7~OQ/u5~64RfyDtd7PaXNIiefOg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/nXPtKhielAtSqFD6_f7~OQ/u5~64RfyDtd7PaXNIiefOg&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;expression means , 
&lt;BR /&gt; 
&lt;BR /&gt;if STD_DT is null then 000 else 
&lt;BR /&gt;difference of days ( in Millisecond) between visitdate and Start_dt.</description>
      <pubDate>Mon, 04 Feb 2019 10:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Relational-Funtions/m-p/2240876#M28209</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-02-04T10:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Relational Funtions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Relational-Funtions/m-p/2240877#M28210</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Below are my thoughts.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;Relational.ISNULL(null)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;&amp;nbsp; &amp;nbsp;This function&amp;nbsp; will verify whether the data inside the bracket is null. Since you have given the value inside bracket as null itself, the function will always return true as output in this scenario.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;Relational.NOT(true)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;The NOT() will negate the boolean value and since you are giving true as the value inside the function, it will convert the data as false.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;!Relational.ISNULL(out.START_DT)?(TalendDate.diffDate(out.START_DT, out.visitdate)):000&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;The first step here is&amp;nbsp;!Relational.ISNULL(out.START_DT) which means you are checking whether out.START_DT is having null value or not. Since you have added "!" at beginnging it will negate the output. So the condition will act as true only if out.START_DT is not null. This is a method to verify whether a variable is having null value or not.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;Now, the next set is condition?Yes value: No value. I believe I have explained the details here itself. In your case, if start_dt is not null, it will go to the first part ie,&amp;nbsp;(TalendDate.diffDate(out.START_DT, out.visitdate)) and if it is null, the output value will be 000.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;Now the last function in query i.e.&amp;nbsp;(TalendDate.diffDate(out.START_DT, out.visitdate)) is doing a difference between two date fields. Below is the description given in Talend tMap Help.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;return difference between two dates&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LNepAAG"&gt;@rchinta&lt;/A&gt; Date1 ( first date )&lt;BR /&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LNepAAG"&gt;@rchinta&lt;/A&gt; Date1 ( second date )&lt;BR /&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LNepAAG"&gt;@rchinta&lt;/A&gt; dateType value=("yyyy","MM","dd","HH","mm","ss","SSS") for type of return&lt;BR /&gt;@return a number of years, months, days ... date1 - date2&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope you got answer to your query &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 14:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Relational-Funtions/m-p/2240877#M28210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-05T14:01:31Z</dc:date>
    </item>
  </channel>
</rss>

