<?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 IN clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IN-clause/m-p/1152625#M376420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all ,&lt;/P&gt;&lt;P&gt;I have a requirement to convert sql code to qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;all columns&amp;gt; FROM LOANS WHERE LOAN_NUMBER IN &lt;/P&gt;&lt;P&gt;( SELECT DISTINCT LOAN_NUMBER FROM REFERENCE_TABLE WHERE &amp;lt;some_condition&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have stored all LOANS data into a QVD : Loans.qvd&lt;/P&gt;&lt;P&gt;Stored all reference data into reference table REF_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to do a resident load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;all columns&amp;gt; &lt;/SPAN&gt;RESIDENT (Loans.qvd) WHERE &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAN_NUMBER IN &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;( LOAN DISTINCT LOAN_NUMBER RESIDENT REF_TABLE)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am not able to achieve this. Can someone help?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In short, how can we use a resident load sub query into another resident load query?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2016 10:28:34 GMT</pubDate>
    <dc:creator>swati_rastogi27</dc:creator>
    <dc:date>2016-06-20T10:28:34Z</dc:date>
    <item>
      <title>IN clause</title>
      <link>https://community.qlik.com/t5/QlikView/IN-clause/m-p/1152625#M376420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all ,&lt;/P&gt;&lt;P&gt;I have a requirement to convert sql code to qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;all columns&amp;gt; FROM LOANS WHERE LOAN_NUMBER IN &lt;/P&gt;&lt;P&gt;( SELECT DISTINCT LOAN_NUMBER FROM REFERENCE_TABLE WHERE &amp;lt;some_condition&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have stored all LOANS data into a QVD : Loans.qvd&lt;/P&gt;&lt;P&gt;Stored all reference data into reference table REF_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to do a resident load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;all columns&amp;gt; &lt;/SPAN&gt;RESIDENT (Loans.qvd) WHERE &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAN_NUMBER IN &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;( LOAN DISTINCT LOAN_NUMBER RESIDENT REF_TABLE)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am not able to achieve this. Can someone help?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In short, how can we use a resident load sub query into another resident load query?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 10:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IN-clause/m-p/1152625#M376420</guid>
      <dc:creator>swati_rastogi27</dc:creator>
      <dc:date>2016-06-20T10:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: IN clause</title>
      <link>https://community.qlik.com/t5/QlikView/IN-clause/m-p/1152626#M376421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to load ref table first and then loadn table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ref:&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;from RESIDENT REF_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loan:&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;from Loan.qvd&lt;/P&gt;&lt;P&gt;where exists (LOAN_NUMBER)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 10:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IN-clause/m-p/1152626#M376421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-20T10:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: IN clause</title>
      <link>https://community.qlik.com/t5/QlikView/IN-clause/m-p/1152627#M376422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First load the REF_TABLE and then Loans.qvd :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ref_Table_Data:&lt;/P&gt;&lt;P&gt;Load Distinct LOAN_NUMBER&lt;/P&gt;&lt;P&gt;from REF_Table.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loans_Data:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;From Loans.qvd&lt;/P&gt;&lt;P&gt;where Exists(LOAN_NUMBER);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 10:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IN-clause/m-p/1152627#M376422</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-06-20T10:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: IN clause</title>
      <link>https://community.qlik.com/t5/QlikView/IN-clause/m-p/1152628#M376423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In qlik you would need the following logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t0:&lt;/P&gt;&lt;P&gt;Load DISTINCT LOAN_NUMBER from REFERENCE_TABLE WHERE &amp;lt;some_condition&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;Load * From LOANS WHERE exists(LOAN_NUMBER);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table t0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 10:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IN-clause/m-p/1152628#M376423</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-06-20T10:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: IN clause</title>
      <link>https://community.qlik.com/t5/QlikView/IN-clause/m-p/1152629#M376424</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;LOAN_NUMBER:&lt;BR /&gt;Load distinct LOAN_NUMBER from REFERENCE_TABLE WHERE &amp;lt;some_condition&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD LOAN_NUMBER1, * FROM LOANS WHERE LOAN_NUMBER exists (LOAN_NUMBER,LOAN_NUMBER1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 10:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IN-clause/m-p/1152629#M376424</guid>
      <dc:creator>muthukumar77</dc:creator>
      <dc:date>2016-06-20T10:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: IN clause</title>
      <link>https://community.qlik.com/t5/QlikView/IN-clause/m-p/1152630#M376425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all , &lt;/P&gt;&lt;P&gt;Exists did not help , so I created a LOANS_EXCLUDES static table and INNER JOINED it with main table.&lt;/P&gt;&lt;P&gt;That solved the purpose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 11:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IN-clause/m-p/1152630#M376425</guid>
      <dc:creator>swati_rastogi27</dc:creator>
      <dc:date>2016-06-21T11:50:40Z</dc:date>
    </item>
  </channel>
</rss>

