<?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 Re: Where Exists ID in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700129#M1067207</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 most common use of exists is Where NOT Exists...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would be better to use a&lt;STRONG&gt; Left Join&lt;/STRONG&gt; for what you are doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 16:58:21 GMT</pubDate>
    <dc:creator>martynlloyd</dc:creator>
    <dc:date>2014-09-15T16:58:21Z</dc:date>
    <item>
      <title>Where Exists ID</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700124#M1067202</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 already read several discussions concerning "where exists", but unfortunately it doesn't seem to work for me (though I think it should be quite simple).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got two tables (SQL) which both have the column&amp;nbsp; id. I just want to load the rows of the second table which have an id which exists in table one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD Id as ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Title&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM datbase.table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD `task_id` as ID ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `label_id`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where exists(ID);&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM database.table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope anyone can help me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 14:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700124#M1067202</guid>
      <dc:creator />
      <dc:date>2014-09-15T14:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Where Exists ID</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700125#M1067203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table2:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD `task_id` as ID ,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `label_id`,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where exists([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;task_id],&lt;/SPAN&gt;ID);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM database.table2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 14:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700125#M1067203</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-15T14:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Where Exists ID</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700126#M1067204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to add the rows from Table2 to the bottom of Table1 ?&amp;nbsp; if so then just add a 'concatenate' key word in lieu of the line 'Table2:'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not and you want the tables separate its a bit more complicated and needs some joining , filtering and resident loads. But then it would associate to Table1 so i'm not sure you want that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 14:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700126#M1067204</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-15T14:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Where Exists ID</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700127#M1067205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Corinna.&lt;/P&gt;&lt;P&gt;if ID is not unique per record, QV only loads the 1st row it encounters. Could that be the case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 14:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700127#M1067205</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-09-15T14:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Where Exists ID</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700128#M1067206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can write &lt;/P&gt;&lt;P&gt;where task_id not in()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 16:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700128#M1067206</guid>
      <dc:creator />
      <dc:date>2014-09-15T16:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Where Exists ID</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700129#M1067207</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 most common use of exists is Where NOT Exists...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would be better to use a&lt;STRONG&gt; Left Join&lt;/STRONG&gt; for what you are doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 16:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700129#M1067207</guid>
      <dc:creator>martynlloyd</dc:creator>
      <dc:date>2014-09-15T16:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Where Exists ID</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700130#M1067208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table2:&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD task_id as ID ,&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; label_id,&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where exists(ID, task_id);&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM database.table2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 22:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700130#M1067208</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-09-15T22:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Where Exists ID</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700131#M1067209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Corinna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ich hatte mal ein ähnliches Problem. Habe es einfach über LEFT JOIN ID gelöst.&lt;/P&gt;&lt;P&gt;Tabelle 1 alle Daten / Tabelle 2 nur die Daten wo in Tabelle 1 die ID vorhanden ist.&lt;/P&gt;&lt;P&gt;Klappt prima. Vielleicht hilft es Dir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LG&lt;/P&gt;&lt;P&gt;Micha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 09:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists-ID/m-p/700131#M1067209</guid>
      <dc:creator>michael_doetter</dc:creator>
      <dc:date>2014-09-19T09:38:13Z</dc:date>
    </item>
  </channel>
</rss>

