<?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 Connecting to two different data sources and limiting data in tables. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Connecting-to-two-different-data-sources-and-limiting-data-in/m-p/221958#M74707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rohita&lt;/P&gt;&lt;P&gt;Both my Join and Miguel's Exists work in QV, so all the data must first be fetched from the DB.&lt;/P&gt;&lt;P&gt;You can limit the data being fetched by doing the join in the SQL query. This will only fetch the matching data (and does it in a single fetch):&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;connect(Datasource1);&lt;BR /&gt;Load T1.A, T1.B, T2.C from table_1 As T1&lt;BR /&gt;LEFT JOIN table_2 As T2 ON T1.A = T2.A;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;(The syntax will depend on the type of DB you are using. This should work on most)&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Sep 2010 13:37:43 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2010-09-29T13:37:43Z</dc:date>
    <item>
      <title>Connecting to two different data sources and limiting data in tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-two-different-data-sources-and-limiting-data-in/m-p/221953#M74702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two database sources.&lt;/P&gt;&lt;P&gt;connect(Datasource1)&lt;/P&gt;&lt;P&gt;Load A,B from table_1;&lt;/P&gt;&lt;P&gt;connect(Datasource2)&lt;/P&gt;&lt;P&gt;Load A,C from table_2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, table_2(from Datasource2) contains redundant data and hence I would like to limit it to the data that is present only in table_1(from Datasource1)&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;In table_1&lt;/P&gt;&lt;P&gt;value of A = {1,2,3}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table_2&lt;/P&gt;&lt;P&gt;value of A = {1,2,3,4,5}&lt;/P&gt;&lt;P&gt;but In table_2 I would like to load values which corresponds to A={1,2,3}&lt;/P&gt;&lt;P&gt;Can anyone help me with this?&lt;/P&gt;&lt;P&gt;Please let me know if you need further information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 11:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-two-different-data-sources-and-limiting-data-in/m-p/221953#M74702</guid>
      <dc:creator />
      <dc:date>2010-09-29T11:41:01Z</dc:date>
    </item>
    <item>
      <title>Connecting to two different data sources and limiting data in tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-two-different-data-sources-and-limiting-data-in/m-p/221954#M74703</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 use a LEFT JOIN to get that:&lt;/P&gt;&lt;P&gt;&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;connect(Datasource1);&lt;BR /&gt;DataTable:&lt;BR /&gt;Load A,B from table_1;&lt;BR /&gt;connect(Datasource2)&lt;BR /&gt;Left Join (DataTable)&lt;BR /&gt;Load A,C from table_2;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 12:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-two-different-data-sources-and-limiting-data-in/m-p/221954#M74703</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-09-29T12:16:56Z</dc:date>
    </item>
    <item>
      <title>Connecting to two different data sources and limiting data in tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-two-different-data-sources-and-limiting-data-in/m-p/221955#M74704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That solves my problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 12:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-two-different-data-sources-and-limiting-data-in/m-p/221955#M74704</guid>
      <dc:creator />
      <dc:date>2010-09-29T12:22:36Z</dc:date>
    </item>
    <item>
      <title>Connecting to two different data sources and limiting data in tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-two-different-data-sources-and-limiting-data-in/m-p/221956#M74705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Although now it shows the correct data but still the complete data is beeing loaded from table_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table_2 contains lot of redundant data and also takes a lot of time to load all the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ultimate aim is to limit the data that is beeing loaded.&lt;/P&gt;&lt;P&gt;Is that possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 13:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-two-different-data-sources-and-limiting-data-in/m-p/221956#M74705</guid>
      <dc:creator />
      <dc:date>2010-09-29T13:14:47Z</dc:date>
    </item>
    <item>
      <title>Connecting to two different data sources and limiting data in tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-two-different-data-sources-and-limiting-data-in/m-p/221957#M74706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Further to Jonathan's example, use the EXISTS() function in WHERE statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;ODBC CONNECT TO Database1;Table1:LOAD A, B;SQL SELECT A, B, FROM Database2.Table1; ODBC CONNECT TO Database2;Table2:LOAD A, CWHERE EXISTS(A);SQL SELECT A, CFROM Database2.Table2;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 13:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-two-different-data-sources-and-limiting-data-in/m-p/221957#M74706</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-29T13:23:13Z</dc:date>
    </item>
    <item>
      <title>Connecting to two different data sources and limiting data in tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-to-two-different-data-sources-and-limiting-data-in/m-p/221958#M74707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rohita&lt;/P&gt;&lt;P&gt;Both my Join and Miguel's Exists work in QV, so all the data must first be fetched from the DB.&lt;/P&gt;&lt;P&gt;You can limit the data being fetched by doing the join in the SQL query. This will only fetch the matching data (and does it in a single fetch):&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;connect(Datasource1);&lt;BR /&gt;Load T1.A, T1.B, T2.C from table_1 As T1&lt;BR /&gt;LEFT JOIN table_2 As T2 ON T1.A = T2.A;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;(The syntax will depend on the type of DB you are using. This should work on most)&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 13:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-to-two-different-data-sources-and-limiting-data-in/m-p/221958#M74707</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-09-29T13:37:43Z</dc:date>
    </item>
  </channel>
</rss>

