<?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 if exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-exists/m-p/236650#M87804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;exists is not a SQL command, it's a QlikView one. In SQL, you can use "IN" as an alternative, if you are comparing to a SQL table... If you need to compare to QlikView table, you need to add a preceding load and use QlikView functions like exist() there. Your SQL statement will still return a full table, and the end results will be filtered out by the preceding load.&lt;/P&gt;&lt;P&gt;If it's important to filter our the SQL table itself, and if the number of available values in Field1 is not too high, you can try creating a list of possible values using function concat(), and then using $() - expansion to bring the list of values into SQL.&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;1. Calculate the list of values and store it in a variable vList&lt;/P&gt;&lt;P&gt;2. SQL SELECT ... FROM ... WHERE Field1 IN ( $(vList) )&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 May 2010 16:59:11 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2010-05-10T16:59:11Z</dc:date>
    <item>
      <title>if exists</title>
      <link>https://community.qlik.com/t5/QlikView/if-exists/m-p/236649#M87803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to use the sql command exists on a resdint table&lt;/P&gt;&lt;P&gt;It look like this&lt;/P&gt;&lt;P&gt;Select Field1,&lt;/P&gt;&lt;P&gt;Field2&lt;/P&gt;&lt;P&gt;from oracle.Table&lt;/P&gt;&lt;P&gt;where exists (load field1 resident qv.table)&lt;/P&gt;&lt;P&gt;can any one help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 15:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-exists/m-p/236649#M87803</guid>
      <dc:creator />
      <dc:date>2010-05-10T15:36:22Z</dc:date>
    </item>
    <item>
      <title>if exists</title>
      <link>https://community.qlik.com/t5/QlikView/if-exists/m-p/236650#M87804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;exists is not a SQL command, it's a QlikView one. In SQL, you can use "IN" as an alternative, if you are comparing to a SQL table... If you need to compare to QlikView table, you need to add a preceding load and use QlikView functions like exist() there. Your SQL statement will still return a full table, and the end results will be filtered out by the preceding load.&lt;/P&gt;&lt;P&gt;If it's important to filter our the SQL table itself, and if the number of available values in Field1 is not too high, you can try creating a list of possible values using function concat(), and then using $() - expansion to bring the list of values into SQL.&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;1. Calculate the list of values and store it in a variable vList&lt;/P&gt;&lt;P&gt;2. SQL SELECT ... FROM ... WHERE Field1 IN ( $(vList) )&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 16:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-exists/m-p/236650#M87804</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-05-10T16:59:11Z</dc:date>
    </item>
    <item>
      <title>if exists</title>
      <link>https://community.qlik.com/t5/QlikView/if-exists/m-p/236651#M87805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;appricaite your help&lt;/P&gt;&lt;P&gt;but my in table will be to long is there an other solution&lt;/P&gt;&lt;P&gt;thankx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 11:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-exists/m-p/236651#M87805</guid>
      <dc:creator />
      <dc:date>2010-05-11T11:23:04Z</dc:date>
    </item>
    <item>
      <title>if exists</title>
      <link>https://community.qlik.com/t5/QlikView/if-exists/m-p/236652#M87806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD *&lt;BR /&gt;&lt;STRONG&gt;WHERE EXISTS(Field1)&lt;BR /&gt;&lt;/STRONG&gt;;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; Field1&lt;BR /&gt;,Field2&lt;BR /&gt;FROM Oracle.Table&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 23:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-exists/m-p/236652#M87806</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-11T23:21:40Z</dc:date>
    </item>
  </channel>
</rss>

