<?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: how to create an outer join with AND and OR in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-an-outer-join-with-AND-and-OR/m-p/2305939#M77518</link>
    <description>&lt;P&gt;Hello kchachad,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;perhaps you can use this: Omit the OR condition in the query and put it as a filter condition in the output table in tMap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2017 09:44:53 GMT</pubDate>
    <dc:creator>ThWabi</dc:creator>
    <dc:date>2017-07-14T09:44:53Z</dc:date>
    <item>
      <title>how to create an outer join with AND and OR</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-an-outer-join-with-AND-and-OR/m-p/2305937#M77516</link>
      <description>&lt;P&gt;I have a MS SQL query that queries multiple views. The query is something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SELECT&amp;nbsp;main.id, main.name, lvl1.id, lvl1.name, lvl2.id, lvl2.name, sub.sub_id
FROM main
LEFT JOIN&amp;nbsp;level lvl1 ON lvl1.id = main.level1_id AND lvl1.level = 1
LEFT JOIN level lvl2 ON lvl2.id = main.level2_id AND lvl2.level = 2
LEFT JOIN sub_main sub ON sub.level_1_name = lvl1.name AND (sub.level_2_1_name = lvl2.name OR sub.level_2_2_name = lvl2.name)&lt;/PRE&gt;&lt;P&gt;I am able to code the first two LEFT JOINs in a tMap component.&lt;/P&gt;&lt;P&gt;I am not sure how to do the last one, especially the OR part of the JOIN.&lt;/P&gt;&lt;P&gt;Can anyone help me with this?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 08:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-an-outer-join-with-AND-and-OR/m-p/2305937#M77516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-30T08:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to create an outer join with AND and OR</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-an-outer-join-with-AND-and-OR/m-p/2305938#M77517</link>
      <description>&lt;P&gt;You can put that whole SQL query in a tMSSQLInput component and map the schema to only the columns you are retrieving. &amp;nbsp;Why would you do that in a tMap when the database is the best place to execute such join statements?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 08:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-an-outer-join-with-AND-and-OR/m-p/2305938#M77517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-30T08:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to create an outer join with AND and OR</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-an-outer-join-with-AND-and-OR/m-p/2305939#M77518</link>
      <description>&lt;P&gt;Hello kchachad,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;perhaps you can use this: Omit the OR condition in the query and put it as a filter condition in the output table in tMap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 09:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-an-outer-join-with-AND-and-OR/m-p/2305939#M77518</guid>
      <dc:creator>ThWabi</dc:creator>
      <dc:date>2017-07-14T09:44:53Z</dc:date>
    </item>
  </channel>
</rss>

