<?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 SQL query to Talend Job JOINS/LOOKUP . in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-to-Talend-Job-JOINS-LOOKUP/m-p/2317874#M88262</link>
    <description>&lt;P&gt;Hi Team,&lt;BR /&gt;I have a SQL Query which fetches data from two tables(ORDERS AND CUSTOMERS) as follows:&lt;BR /&gt;SELECT &lt;STRONG&gt;O.&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana,"&gt;&lt;STRONG&gt;OrderID&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;||'-'||&lt;/STRONG&gt;&lt;STRONG&gt;c.&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana,"&gt;&lt;STRONG&gt;CustomerID&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;as &lt;STRONG&gt;ID&lt;/STRONG&gt; from &lt;STRONG&gt;ORDERS O,CUSTOMERS c&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;WHERE &lt;STRONG&gt;NVL(O.OrderName&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana,"&gt;&lt;STRONG&gt;, 'sometext') =&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;NVL(c.CustomerName&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana,"&gt;&lt;STRONG&gt;, 'sometext')&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;How to check above NVL condition in Talend.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;KK&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2015 16:28:40 GMT</pubDate>
    <dc:creator>karthik_koneru</dc:creator>
    <dc:date>2015-12-03T16:28:40Z</dc:date>
    <item>
      <title>SQL query to Talend Job JOINS/LOOKUP .</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-to-Talend-Job-JOINS-LOOKUP/m-p/2317874#M88262</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;I have a SQL Query which fetches data from two tables(ORDERS AND CUSTOMERS) as follows:&lt;BR /&gt;SELECT &lt;STRONG&gt;O.&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana,"&gt;&lt;STRONG&gt;OrderID&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;||'-'||&lt;/STRONG&gt;&lt;STRONG&gt;c.&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana,"&gt;&lt;STRONG&gt;CustomerID&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;as &lt;STRONG&gt;ID&lt;/STRONG&gt; from &lt;STRONG&gt;ORDERS O,CUSTOMERS c&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;WHERE &lt;STRONG&gt;NVL(O.OrderName&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana,"&gt;&lt;STRONG&gt;, 'sometext') =&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;NVL(c.CustomerName&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana,"&gt;&lt;STRONG&gt;, 'sometext')&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;How to check above NVL condition in Talend.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;KK&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 16:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-query-to-Talend-Job-JOINS-LOOKUP/m-p/2317874#M88262</guid>
      <dc:creator>karthik_koneru</dc:creator>
      <dc:date>2015-12-03T16:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query to Talend Job JOINS/LOOKUP .</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-to-Talend-Job-JOINS-LOOKUP/m-p/2317875#M88263</link>
      <description>What do you mean "check"?
&lt;BR /&gt;You can run this query without any change directly in a tOracleInput component.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;"SELECT&amp;nbsp;O.OrderID||'-'||c.CustomerID&amp;nbsp;as&amp;nbsp;ID&amp;nbsp;from&amp;nbsp;ORDERS O,CUSTOMERS c&amp;nbsp;&lt;BR /&gt;WHERE&amp;nbsp;NVL(O.OrderName, 'sometext') =&amp;nbsp;NVL(c.CustomerName, 'sometext')"&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;Put this query within double quotas like I did and than click on guess schema to get an appropriated schema - but actually, you have only one column...
&lt;BR /&gt;One question to your query: Do you really want to always join if the OrderName and CustomerName ist null? Looks not as a reliable way.</description>
      <pubDate>Thu, 03 Dec 2015 19:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-query-to-Talend-Job-JOINS-LOOKUP/m-p/2317875#M88263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-03T19:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query to Talend Job JOINS/LOOKUP .</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-to-Talend-Job-JOINS-LOOKUP/m-p/2317876#M88264</link>
      <description>Hi Jlolling, 
&lt;BR /&gt;I just made-up those Columns. 
&lt;BR /&gt;Scenario was those two TABLES exist in different database's. 
&lt;BR /&gt;So we cannot use single tOracleInput component to put the sql Query. 
&lt;BR /&gt;My question is, how to implement WHERE Clause Condition&amp;nbsp;NVL(o.Column1, 'sometext') =&amp;nbsp;NVL(c.Column2, 'sometext') 
&lt;BR /&gt;in tmap.&amp;nbsp; 
&lt;BR /&gt;If it is just to compare Main Table condition , with Lookup table. 
&lt;BR /&gt;Then we just use condition in &amp;nbsp;LookTable LabelState column as below 
&lt;BR /&gt;condition: LabelState 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGxy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128481i9D0696F04AC61459/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGxy.png" alt="0683p000009MGxy.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I got struck ,how to implement other part of that where clause condition. 
&lt;BR /&gt;NVL(o.Column1, 'sometext') =&amp;nbsp; 
&lt;B&gt;&lt;FONT color="#ff3333"&gt;NVL(c.Column2, 'sometext')&lt;/FONT&gt;&lt;/B&gt; 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;KK</description>
      <pubDate>Thu, 03 Dec 2015 20:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-query-to-Talend-Job-JOINS-LOOKUP/m-p/2317876#M88264</guid>
      <dc:creator>karthik_koneru</dc:creator>
      <dc:date>2015-12-03T20:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query to Talend Job JOINS/LOOKUP .</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-to-Talend-Job-JOINS-LOOKUP/m-p/2317877#M88265</link>
      <description>Simple speaking: you have to prepare the values you need to join different flows before you send them to the tMap.&lt;BR /&gt;If you have different database - this implies you have 2 tOracleInput and in this case you have to take care there you do not get null values.</description>
      <pubDate>Thu, 03 Dec 2015 23:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-query-to-Talend-Job-JOINS-LOOKUP/m-p/2317877#M88265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-03T23:59:39Z</dc:date>
    </item>
  </channel>
</rss>

