<?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 Mimic SQL's IN clause for resident table load. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mimic-SQL-s-IN-clause-for-resident-table-load/m-p/326525#M710819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;That worked, thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Still getting used to the QV load scripts. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;As an addition I used the &lt;STRONG&gt;DISTINCT &lt;/STRONG&gt;qualifier, which seemed to reduce the loading time somewhat.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;bridgeGP:&lt;/P&gt;&lt;P&gt;load DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sGP as bridgeGP&lt;/P&gt;&lt;P&gt;resident Tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 08:22:09 GMT</pubDate>
    <dc:creator>thomastc</dc:creator>
    <dc:date>2011-06-29T08:22:09Z</dc:date>
    <item>
      <title>Mimic SQL's IN clause for resident table load.</title>
      <link>https://community.qlik.com/t5/QlikView/Mimic-SQL-s-IN-clause-for-resident-table-load/m-p/326520#M710813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to mimic a sub query in an SQL IN clause when loading from a qvd? I have a master list in a qvd file but only want to load data that is already present in my resident tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance I have Tab1 and Tab2 both with the field ‘GP’ for instance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tab1.sGP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tab2.pGP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a master list of GPs in a qvd file but I only want to load GPs that are in both Tab1 and Tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that Tab1 and Tab2 are resident tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for the equivalent of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;masterPrac:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD GP AS bridgeGP &lt;/P&gt;&lt;P&gt;From D:\Qlikview\QV Data\tbl_GP.qvd (qvd)&lt;/P&gt;&lt;P&gt;Where GP IN(SELECT sGP Resident Tab1) &lt;/P&gt;&lt;P&gt;AND&amp;nbsp;&amp;nbsp; GP IN(Select pGP Resident Tab2);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 10:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mimic-SQL-s-IN-clause-for-resident-table-load/m-p/326520#M710813</guid>
      <dc:creator>thomastc</dc:creator>
      <dc:date>2011-06-28T10:45:35Z</dc:date>
    </item>
    <item>
      <title>Mimic SQL's IN clause for resident table load.</title>
      <link>https://community.qlik.com/t5/QlikView/Mimic-SQL-s-IN-clause-for-resident-table-load/m-p/326521#M710815</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;the code should look somehing like this (untested)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bridgeGP:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sGP as bridgeGP&lt;/P&gt;&lt;P&gt;resident Tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bridgeGP:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pGP as bridgeGP&lt;/P&gt;&lt;P&gt;resident Tab2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;masterPrac:&lt;/P&gt;&lt;P&gt;load GP as bridgeGP&lt;/P&gt;&lt;P&gt;from your qvd file here&lt;/P&gt;&lt;P&gt;where exists(bridgeGP,GP);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table bridgeGP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 10:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mimic-SQL-s-IN-clause-for-resident-table-load/m-p/326521#M710815</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-06-28T10:53:35Z</dc:date>
    </item>
    <item>
      <title>Mimic SQL's IN clause for resident table load.</title>
      <link>https://community.qlik.com/t5/QlikView/Mimic-SQL-s-IN-clause-for-resident-table-load/m-p/326522#M710816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I'll give that a go!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 10:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mimic-SQL-s-IN-clause-for-resident-table-load/m-p/326522#M710816</guid>
      <dc:creator>thomastc</dc:creator>
      <dc:date>2011-06-28T10:55:49Z</dc:date>
    </item>
    <item>
      <title>Mimic SQL's IN clause for resident table load.</title>
      <link>https://community.qlik.com/t5/QlikView/Mimic-SQL-s-IN-clause-for-resident-table-load/m-p/326523#M710817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That essentially is what I have at the moment. I need something that will give me only the values that are in both Tab1 and Tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if Tab1 has the value ‘A76’ but Tab2 does not then the masterPrac table should not contain ‘A76’. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if Tab2 has the value 'G29' and 'G29' is not in Tab1 then masterPrac should not contain 'G29'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 12:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mimic-SQL-s-IN-clause-for-resident-table-load/m-p/326523#M710817</guid>
      <dc:creator>thomastc</dc:creator>
      <dc:date>2011-06-28T12:55:03Z</dc:date>
    </item>
    <item>
      <title>Mimic SQL's IN clause for resident table load.</title>
      <link>https://community.qlik.com/t5/QlikView/Mimic-SQL-s-IN-clause-for-resident-table-load/m-p/326524#M710818</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;my oversight &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be solved by slightly chnaging the creation of your master list as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bridgeGP:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sGP as bridgeGP&lt;/P&gt;&lt;P&gt;resident Tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bridgeGP:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;inner join (bridgeGP) &lt;/STRONG&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pGP as bridgeGP&lt;/P&gt;&lt;P&gt;resident Tab2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then rest of code as above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 13:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mimic-SQL-s-IN-clause-for-resident-table-load/m-p/326524#M710818</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-06-28T13:00:20Z</dc:date>
    </item>
    <item>
      <title>Mimic SQL's IN clause for resident table load.</title>
      <link>https://community.qlik.com/t5/QlikView/Mimic-SQL-s-IN-clause-for-resident-table-load/m-p/326525#M710819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;That worked, thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Still getting used to the QV load scripts. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;As an addition I used the &lt;STRONG&gt;DISTINCT &lt;/STRONG&gt;qualifier, which seemed to reduce the loading time somewhat.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;bridgeGP:&lt;/P&gt;&lt;P&gt;load DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sGP as bridgeGP&lt;/P&gt;&lt;P&gt;resident Tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 08:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mimic-SQL-s-IN-clause-for-resident-table-load/m-p/326525#M710819</guid>
      <dc:creator>thomastc</dc:creator>
      <dc:date>2011-06-29T08:22:09Z</dc:date>
    </item>
  </channel>
</rss>

