<?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 Need to join two tables like in sql in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to-join-two-tables-like-in-sql/m-p/207587#M1208771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible like in sql ,can we load one table based on condition (field from another table comparison to this table field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;table1::&lt;/P&gt;&lt;P&gt;load f1,f2 from ...qvd;&lt;/P&gt;&lt;P&gt;table2::&lt;/P&gt;&lt;P&gt;load g1,g2 from ...qvd;&lt;/P&gt;&lt;P&gt;table3:&lt;/P&gt;&lt;P&gt;load f1,f2 from table1 where table1.f1=left(table2.g2,2) ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Dec 2009 18:50:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-30T18:50:10Z</dc:date>
    <item>
      <title>Need to join two tables like in sql</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-join-two-tables-like-in-sql/m-p/207587#M1208771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible like in sql ,can we load one table based on condition (field from another table comparison to this table field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;table1::&lt;/P&gt;&lt;P&gt;load f1,f2 from ...qvd;&lt;/P&gt;&lt;P&gt;table2::&lt;/P&gt;&lt;P&gt;load g1,g2 from ...qvd;&lt;/P&gt;&lt;P&gt;table3:&lt;/P&gt;&lt;P&gt;load f1,f2 from table1 where table1.f1=left(table2.g2,2) ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 18:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-join-two-tables-like-in-sql/m-p/207587#M1208771</guid>
      <dc:creator />
      <dc:date>2009-12-30T18:50:10Z</dc:date>
    </item>
    <item>
      <title>Need to join two tables like in sql</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-join-two-tables-like-in-sql/m-p/207588#M1208772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can do it but not as in SQL, there are other methods of doing this e.g using joins. Please see an example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;table1:&lt;BR /&gt;load * inline [&lt;BR /&gt;f1,f2&lt;BR /&gt;AP,10&lt;BR /&gt;JP,20&lt;BR /&gt;];&lt;BR /&gt;test:&lt;BR /&gt;load * inline [&lt;BR /&gt;g1,g2&lt;BR /&gt;APAC,10&lt;BR /&gt;];&lt;BR /&gt;table2:&lt;BR /&gt;load&lt;BR /&gt;*,&lt;BR /&gt;left(g1,2) as g3&lt;BR /&gt;resident test;&lt;BR /&gt;drop table test;&lt;BR /&gt;table3:&lt;BR /&gt;load&lt;BR /&gt;g3 as f1&lt;BR /&gt;resident table2;&lt;BR /&gt;inner join (table3)&lt;BR /&gt;load f1,&lt;BR /&gt;f2&lt;BR /&gt;resident table1;&lt;BR /&gt;drop table table1;&lt;BR /&gt;drop table table2;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 19:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-join-two-tables-like-in-sql/m-p/207588#M1208772</guid>
      <dc:creator />
      <dc:date>2009-12-30T19:05:46Z</dc:date>
    </item>
    <item>
      <title>Need to join two tables like in sql</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-join-two-tables-like-in-sql/m-p/207589#M1208773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Blessy&lt;/P&gt;&lt;P&gt;I think You must have the same values as a key to compare two different tables (in Your case left(g2,2) should be a value).&lt;/P&gt;&lt;P&gt;This way the solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;table1:&lt;BR /&gt;load * inline&lt;BR /&gt;[f1, f2&lt;BR /&gt;a1, 2&lt;BR /&gt;b1, 3&lt;BR /&gt;c1, 1&lt;BR /&gt;];&lt;BR /&gt;table2.temp:&lt;BR /&gt;load * inline&lt;BR /&gt;[g1, g2&lt;BR /&gt;d1, a1aa&lt;BR /&gt;d2, b1aa&lt;BR /&gt;d3, d1aa&lt;BR /&gt;];&lt;BR /&gt;table2:&lt;BR /&gt;load g1,&lt;BR /&gt; g2,&lt;BR /&gt; left(g2,2) as g3&lt;BR /&gt;resident table2.temp;&lt;BR /&gt;drop table table2.temp;&lt;BR /&gt;table3:&lt;BR /&gt;load f1 as t1,&lt;BR /&gt; f2 as t2&lt;BR /&gt;resident table1&lt;BR /&gt;where exists(g3, f1);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 19:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-join-two-tables-like-in-sql/m-p/207589#M1208773</guid>
      <dc:creator>justinasp</dc:creator>
      <dc:date>2009-12-30T19:36:30Z</dc:date>
    </item>
  </channel>
</rss>

