<?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 Inner join SQL dataset to QVD in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Inner-join-SQL-dataset-to-QVD/m-p/1637051#M47470</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I work with large datasets and my data-load therefore times out. To better manage this I want to create a reference QVD files and use this to restrict the dataset for subsequent SQL queries.&lt;/P&gt;&lt;P&gt;reftable:&lt;/P&gt;&lt;P&gt;SQL&amp;nbsp;SELECT NHI,Encounter from table1 INP&lt;BR /&gt;INNER JOIN table2 PID ON (INP.NHI = PID.EXTERNALID ) ;&lt;/P&gt;&lt;P&gt;newtable:&lt;/P&gt;&lt;P&gt;SQL select * from table3 EXAM INNER JOIN reftable REF ON EXAM.encounter = REF.encounter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best way to achieve this in Qlik?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Marius&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2019 09:06:17 GMT</pubDate>
    <dc:creator>mariusvr</dc:creator>
    <dc:date>2019-10-18T09:06:17Z</dc:date>
    <item>
      <title>Inner join SQL dataset to QVD</title>
      <link>https://community.qlik.com/t5/App-Development/Inner-join-SQL-dataset-to-QVD/m-p/1637051#M47470</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I work with large datasets and my data-load therefore times out. To better manage this I want to create a reference QVD files and use this to restrict the dataset for subsequent SQL queries.&lt;/P&gt;&lt;P&gt;reftable:&lt;/P&gt;&lt;P&gt;SQL&amp;nbsp;SELECT NHI,Encounter from table1 INP&lt;BR /&gt;INNER JOIN table2 PID ON (INP.NHI = PID.EXTERNALID ) ;&lt;/P&gt;&lt;P&gt;newtable:&lt;/P&gt;&lt;P&gt;SQL select * from table3 EXAM INNER JOIN reftable REF ON EXAM.encounter = REF.encounter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best way to achieve this in Qlik?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Marius&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 09:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Inner-join-SQL-dataset-to-QVD/m-p/1637051#M47470</guid>
      <dc:creator>mariusvr</dc:creator>
      <dc:date>2019-10-18T09:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join SQL dataset to QVD</title>
      <link>https://community.qlik.com/t5/App-Development/Inner-join-SQL-dataset-to-QVD/m-p/1637491#M47516</link>
      <description>&lt;P&gt;Hi, Qlik passes a query to the database, the database then executes it and returns the resulting data back to Qlik. Data within the Qlik application cannot be used as a reference or intersection for operations in the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to completely move this process QVDs, you could do something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ref:
Load
    NHI as EXTERNALID
From
    [lib://QVD/INP.qvd](qvd);

Inner Join(Ref)
Load
    EXTERNALID,
    ENCOUNTER 
From
    [lib://QVD/PID.qvd](qvd);


Table:
Load
    *
FROM
    [lib://QVD/EXAM.qvd](qvd)
Where 
    Exists(ENCOUNTER);

Drop Table Ref;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 19 Oct 2019 19:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Inner-join-SQL-dataset-to-QVD/m-p/1637491#M47516</guid>
      <dc:creator>treysmithdev</dc:creator>
      <dc:date>2019-10-19T19:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join SQL dataset to QVD</title>
      <link>https://community.qlik.com/t5/App-Development/Inner-join-SQL-dataset-to-QVD/m-p/1639754#M47686</link>
      <description>&lt;P&gt;Thank you for your fast reply.&lt;/P&gt;&lt;P&gt;My solution ended up being simplifying my SQL queries a lot and using the power of Qlik to further stratify the data later.&lt;/P&gt;&lt;P&gt;Another option would have been to save the Qlik data as a csv file and using the SQL bulk insert function (although this is disabled on our database)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Marius&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 06:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Inner-join-SQL-dataset-to-QVD/m-p/1639754#M47686</guid>
      <dc:creator>mariusvr</dc:creator>
      <dc:date>2019-10-25T06:15:02Z</dc:date>
    </item>
  </channel>
</rss>

