<?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 Where Exists... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215470#M68934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;so far I see you did not have a field ZORDER.&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jan 2010 15:46:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-18T15:46:44Z</dc:date>
    <item>
      <title>Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215469#M68933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the following script I only want to extract records from VBAK where they exist in ZTRPST. The matching fields would be [ZORDER] from ZTRPST and [VBELN] from VBAK. I keep getting errors when I use the following stmt : SQL Select * FROM VBAK WHERE exists([%SalesOrderDocument_Key], [ZORDER]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Thom&lt;/P&gt;&lt;P&gt;[ZTRPST]: // Time Reports - Spread Time Posted&lt;BR /&gt;Load&lt;BR /&gt; [ZORDER] &amp;amp; '/' &amp;amp; [ZACTIVITY] as [%SalesOrderDocumentItem_Key],&lt;BR /&gt; [ZTICKNO] as [Ticket Number_ZTICKNO],&lt;BR /&gt; [ZWDATE] as [Date in the week_ZWDATE],&lt;BR /&gt; [ZEMPEQP] as [Indicator for employee or equipment_ZEMPEQP],&lt;BR /&gt; [ZHOURS] as [Hours Registered_ZHOURS],&lt;BR /&gt; [ZHOMCTR] as [Cost Center_ZHOMCTR],&lt;BR /&gt; [ZORDER] as [Order Number_ZORDER],&lt;BR /&gt; [ZACTIVITY] as [Activity_ZACTIVITY],&lt;BR /&gt; [ZSTATUS] as [Job Status_ZSTATUS],&lt;BR /&gt; [ZFLGDMEM] as [Status flag for Debit Memo creation_ZFLGDMEM],&lt;BR /&gt; [ZOBJECT] as [Employee&amp;amp;Activity / Equip&amp;amp;Equip Type_ZOBJECT],&lt;BR /&gt; [ZORDER1] as [Order Number_ZORDER1],&lt;BR /&gt; [ZACTIVITY1] as [Activity_ZACTIVITY1],&lt;BR /&gt; [ZFLGSERV] as [Status Flag for Service Order Creation_ZFLGSERV],&lt;BR /&gt; [ZFLGCONF] as [Status Flag for Confirmations (IW41)_ZFLGCONF],&lt;BR /&gt; [ZSERVORDTYPE] as [_ZSERVORDTYPE],&lt;BR /&gt; [ZHOMCTR_SERVORD] as [Cost Center_ZHOMCTR_SERVORD],&lt;BR /&gt; [ZSTORM] as [_ZSTORM];&lt;BR /&gt;SQL Select ZORDER ZTICKNO ZWDATE ZEMPEQP ZHOURS ZHOMCTR ZSTATUS&lt;BR /&gt; ZACTIVITY ZFLGDMEM ZOBJECT ZORDER1 ZACTIVITY1 ZFLGSERV ZFLGCONF&lt;BR /&gt; ZSERVORDTYPE ZHOMCTR_SERVORD ZSTORM&lt;BR /&gt;from ZTRPST where ZWDATE &amp;gt;= '20090104' and ZEMPEQP = 'P' and&lt;BR /&gt; ZORDER between '000040000000' and '000049999999'&lt;BR /&gt;;&lt;BR /&gt;STORE * FROM [ZTRPST] INTO QVD\ZTRPST.QVD;&lt;/P&gt;&lt;P&gt;//DROP TABLE [ZTRPST];&lt;/P&gt;&lt;P&gt;//**********************************************************************************&lt;BR /&gt;// Table: VBAK - Sales Order Document Header&lt;BR /&gt;//**********************************************************************************&lt;/P&gt;&lt;P&gt;[VBAK]: // Sales Document: Header Data&lt;BR /&gt;Load&lt;BR /&gt; [VBELN] as [%SalesOrderDocument_Key],&lt;BR /&gt; [VKORG] as [Sales Organization_VKORG],&lt;BR /&gt; [VTWEG] as [Distribution Channel_VTWEG],&lt;BR /&gt; [SPART] as [Division_SPART],&lt;BR /&gt; [VBTYP] as [SD document categ._VBTYP],&lt;BR /&gt; [AUART] as [Sales Document Type_AUART],&lt;BR /&gt; [KURST] as [Exchange Rate Type_KURST],&lt;BR /&gt; [VBELN] as [Sales Document_VBELN],&lt;BR /&gt; [KUNNR] as [Sold-to party_KUNNR],&lt;BR /&gt; [VKBUR] as [Sales Office_VKBUR],&lt;BR /&gt; [VKGRP] as [Sales Group_VKGRP],&lt;BR /&gt; [AUFNR] as [Order_AUFNR],&lt;BR /&gt; [AUGRU] as [Order reason_AUGRU],&lt;BR /&gt; [WAERK] as [Document Currency_WAERK],&lt;BR /&gt; [GUEBG] as [Valid-from date_GUEBG],&lt;BR /&gt; [GUEEN] as [Valid-to date_GUEEN],&lt;BR /&gt; [STWAE] as [Statistics currency_STWAE],&lt;BR /&gt; [KVGR1] as [Customer group 1_KVGR1],&lt;BR /&gt; [KVGR2] as [Customer group 2_KVGR2],&lt;BR /&gt; [KVGR3] as [Customer group 3_KVGR3],&lt;BR /&gt; [KVGR4] as [Customer group 4_KVGR4],&lt;BR /&gt; [KVGR5] as [Customer group 5_KVGR5];&lt;BR /&gt;// [KOSTL] as [Cost Center_KOSTL],&lt;BR /&gt;// [NETWR] as [Net value_NETWR],&lt;BR /&gt;// [VGBEL] as [Reference document_VGBEL],&lt;BR /&gt;// [ERNAM] as [Created by_ERNAM],&lt;BR /&gt;// [ERZET] as [Time_ERZET],&lt;BR /&gt;// [ERDAT] as [Created on_ERDAT],&lt;BR /&gt;// [AEDAT] as [Changed on_AEDAT],&lt;BR /&gt;// [KNUMA] as [Agreement_KNUMA],&lt;BR /&gt;// [BSTNK] as [Purchase order no._BSTNK],&lt;BR /&gt;// [BSTDK] as [Purchase order date_BSTDK],&lt;BR /&gt;// [STAFO] as [Update group (stats)_STAFO],&lt;BR /&gt;// [ANGDT] as [Quotation valid from_ANGDT],&lt;BR /&gt;// [BNDDT] as [Quotation valid to_BNDDT],&lt;BR /&gt;// [AUDAT] as [Document Date_AUDAT],&lt;BR /&gt;// [TRVOG] as [Transaction group_TRVOG],&lt;BR /&gt;// [GWLDT] as [Guarantee_GWLDT],&lt;BR /&gt;// [SUBMI] as [Collective number_SUBMI],&lt;BR /&gt;// [LIFSK] as [Delivery block_LIFSK],&lt;BR /&gt;// [FAKSK] as [Billing block_FAKSK],&lt;BR /&gt;// [GSBER] as [Business Area_GSBER],&lt;BR /&gt;// [GSKST] as [Business area_GSKST],&lt;BR /&gt;// [KNUMV] as [Doc. condition no._KNUMV],&lt;BR /&gt;// [VDATU] as [Requested deliv.date_VDATU],&lt;BR /&gt;// [VPRGR] as [Prop.date type_VPRGR],&lt;BR /&gt;// [AUTLF] as [Complete delivery_AUTLF],&lt;BR /&gt;// [VBKLA] as [Original system_VBKLA],&lt;BR /&gt;// [VBKLT] as [Indicator_VBKLT],&lt;BR /&gt;// [KALSM] as [Pricing procedure_KALSM],&lt;BR /&gt;// [VSBED] as [Shipping Conditions_VSBED],&lt;BR /&gt;// [FKARA] as [Order-rel.bill.type_FKARA],&lt;BR /&gt;// [AWAHR] as [Probability_AWAHR],&lt;BR /&gt;// [KTEXT] as [Description_KTEXT],&lt;BR /&gt;// [BSARK] as [Purchase order type_BSARK],&lt;BR /&gt;// [BSTZD] as [Supplement_BSTZD],&lt;BR /&gt;// [IHREZ] as [Your Reference_IHREZ],&lt;BR /&gt;// [BNAME] as [Name_BNAME],&lt;BR /&gt;// [TELF1] as [Telephone_TELF1],&lt;BR /&gt;// [MAHZA] as [Number of contacts_MAHZA],&lt;BR /&gt;// [MAHDT] as [Last contact date_MAHDT],&lt;BR /&gt;// [KOKRS] as [Controlling Area_KOKRS],&lt;BR /&gt;// [PS_PSP_PNR] as [WBS Element_PS_PSP_PNR],&lt;BR /&gt;// [KKBER] as [Credit control area_KKBER],&lt;BR /&gt;// [KNKLI] as [Credit account_KNKLI],&lt;BR /&gt;// [GRUPP] as [Cust.cred.group_GRUPP],&lt;BR /&gt;// [SBGRP] as [Credit rep.group_SBGRP],&lt;BR /&gt;// [CTLPC] as [Risk category_CTLPC],&lt;BR /&gt;// [CMWAE] as [Currency_CMWAE],&lt;BR /&gt;// [CMFRE] as [Release date_CMFRE],&lt;BR /&gt;// [CMNUP] as [Next check_CMNUP],&lt;BR /&gt;// [CMNGV] as [Next date_CMNGV],&lt;BR /&gt;// [AMTBL] as [Rel. credit value_AMTBL],&lt;BR /&gt;// [HITYP_PR] as [HierarchyTypePricing_HITYP_PR],&lt;BR /&gt;// [ABRVW] as [Usage_ABRVW],&lt;BR /&gt;// [ABDIS] as [MRP for DlvSchType_ABDIS],&lt;BR /&gt;// [OBJNR] as [Object no.header_OBJNR],&lt;BR /&gt;// [BUKRS_VF] as [CCode to be billed_BUKRS_VF],&lt;BR /&gt;// [TAXK1] as [Alt.tax classific._TAXK1],&lt;BR /&gt;// [TAXK2] as [TaxClass2-Cust._TAXK2],&lt;BR /&gt;// [TAXK3] as [TaxClass3-Cust._TAXK3],&lt;BR /&gt;// [TAXK4] as [TaxClass4-Cust._TAXK4],&lt;BR /&gt;// [TAXK5] as [TaxClass5-Cust._TAXK5],&lt;BR /&gt;// [TAXK6] as [TaxClass6-Cust._TAXK6],&lt;BR /&gt;// [TAXK7] as [TaxClass7-Cust._TAXK7],&lt;BR /&gt;// [TAXK8] as [TaxClass8-Cust._TAXK8],&lt;BR /&gt;// [TAXK9] as [TaxClass9-Cust._TAXK9],&lt;BR /&gt;// [XBLNR] as [Reference_XBLNR],&lt;BR /&gt;// [ZUONR] as [Assignment_ZUONR],&lt;BR /&gt;// [VGTYP] as [Preceding doc.categ._VGTYP],&lt;BR /&gt;// [KALSM_CH] as [Search procedure_KALSM_CH],&lt;BR /&gt;// [AGRZR] as [Accrual period_AGRZR],&lt;BR /&gt;// [QMNUM] as [Notification_QMNUM],&lt;BR /&gt;// [VBELN_GRP] as [Master contract_VBELN_GRP],&lt;BR /&gt;// [SCHEME_GRP] as [Group Ref. Procedure_SCHEME_GRP],&lt;BR /&gt;// [ABRUF_PART] as [Check partner auth._ABRUF_PART],&lt;BR /&gt;// [ABHOD] as [Pick up date_ABHOD],&lt;BR /&gt;// [ABHOV] as [Pick up time_ABHOV],&lt;BR /&gt;// [ABHOB] as [Pick up time_ABHOB],&lt;BR /&gt;// [RPLNR] as [Paym.card plan no._RPLNR],&lt;BR /&gt;// [VZEIT] as [Requested dely time_VZEIT],&lt;BR /&gt;// [STCEG_L] as [Tax dest. country_STCEG_L],&lt;BR /&gt;// [LANDTX] as [Tax depart. country_LANDTX],&lt;BR /&gt;// [XEGDR] as [EU triangular deal_XEGDR],&lt;BR /&gt;// [ENQUEUE_GRP] as [_ENQUEUE_GRP],&lt;BR /&gt;// [DAT_FZAU] as [CmlQtyDate_DAT_FZAU],&lt;BR /&gt;// [FMBDAT] as [Material Avail. Date_FMBDAT],&lt;BR /&gt;// [VSNMR_V] as [Version_VSNMR_V],&lt;BR /&gt;// [CONT_DG] as [Contains DG_CONT_DG],&lt;BR /&gt;// [PROLI] as [DG mgmt profile_PROLI],&lt;BR /&gt;// [MTLAUR] as [Target Incom_MTLAUR],&lt;BR /&gt;// [PHASE] as [Sales Phase_PHASE],&lt;BR /&gt;// [HANDLE] as [Int.ID_HANDLE],&lt;BR /&gt;// [KALCD] as [Proc. Camp.Determin._KALCD],&lt;BR /&gt;// [LOGSYSB] as [Logical system_LOGSYSB],&lt;BR /&gt;// [CRM_GUID] as [Char 70_CRM_GUID],&lt;BR /&gt;// [SWENR] as [Business entity_SWENR],&lt;BR /&gt;// [SMENR] as [Unit Number_SMENR],&lt;BR /&gt;// [STAGE] as [Construction stage_STAGE],&lt;BR /&gt;// [HB_CONT_REASON] as [Contingency reason_HB_CONT_REASON],&lt;BR /&gt;// [HB_EXPDATE] as [Expiration date_HB_EXPDATE],&lt;BR /&gt;// [HB_RESDATE] as [Resolution date_HB_RESDATE],&lt;BR /&gt;// [MULTI] as [Multiple Promotions_MULTI],&lt;BR /&gt;// [ZZDT_DOORHANG] as [Date of Door Hanger_ZZDT_DOORHANG],&lt;BR /&gt;// [ZZDT_POSTCARD] as [Date of Post Card Mailing_ZZDT_POSTCARD],&lt;BR /&gt;// [ZZDT_MAILED] as [Date Mailed_ZZDT_MAILED],&lt;BR /&gt;// [ZZDT_FOLLOWUP] as [Follow-Up Mailing Date_ZZDT_FOLLOWUP]&lt;/P&gt;&lt;P&gt;//SQL Select * FROM VBAK where GUEBG &amp;gt;= '$(vYear)' and AUART = '$(vDocument)';&lt;/P&gt;&lt;P&gt;SQL Select * FROM VBAK WHERE exists([%SalesOrderDocument_Key], [ZORDER]);&lt;/P&gt;&lt;P&gt;store VBAK into qvd\VBAK.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 15:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215469#M68933</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2010-01-18T15:35:42Z</dc:date>
    </item>
    <item>
      <title>Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215470#M68934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;so far I see you did not have a field ZORDER.&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 15:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215470#M68934</guid>
      <dc:creator />
      <dc:date>2010-01-18T15:46:44Z</dc:date>
    </item>
    <item>
      <title>Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215471#M68935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ZORDER is in the first table ZTRPST&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 15:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215471#M68935</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2010-01-18T15:55:08Z</dc:date>
    </item>
    <item>
      <title>Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215472#M68936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You renamed it: [ZORDER] as [Order Number_ZORDER],&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 15:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215472#M68936</guid>
      <dc:creator />
      <dc:date>2010-01-18T15:59:02Z</dc:date>
    </item>
    <item>
      <title>Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215473#M68937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed my sql statement to look like this and I get a script line error on it: Should they be reversed?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Select * FROM VBAK WHERE exists([%SalesOrderDocument_Key], [Order Number_ZORDER]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 16:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215473#M68937</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2010-01-18T16:03:28Z</dc:date>
    </item>
    <item>
      <title>Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215474#M68938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the basic problem is that you're using a QlikView function inside of an SQL statement. Your DBMS has no idea what to do with a QlikView function. In other words, the exists() goes in the LOAD statement, not the in SQL statement.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;WHERE EXISTS(the field you loaded previously, the field you are now loading)&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;...&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 01:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215474#M68938</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-01-19T01:55:44Z</dc:date>
    </item>
    <item>
      <title>Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215475#M68939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;the solution to your problem would be you should load both the fields before using them in where exists . What i mean by this is you should load the table ZTRPST with field[ZORDER] and then load the next table VBAK with [VBELN] field and with this Load statement ,use&lt;/P&gt;&lt;P&gt;Where exists([ZORDER],[VBELN])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 05:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215475#M68939</guid>
      <dc:creator />
      <dc:date>2010-01-19T05:58:19Z</dc:date>
    </item>
    <item>
      <title>Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215476#M68940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thom&lt;BR /&gt;Are you trying to extract from SAP ? If so how many records do you have in the ODS's you are extracting from ?&lt;BR /&gt;I have had some errors too ( http://community.qlik.com/forums/p/24594/93942.aspx#93942 ) trying to do similar restrictions on extract.&lt;BR /&gt;Greenee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 06:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215476#M68940</guid>
      <dc:creator />
      <dc:date>2010-01-19T06:32:13Z</dc:date>
    </item>
    <item>
      <title>Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215477#M68941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. I am trying to extract sales orders from SAP. In VBAK we have 16 million rows and on VBAP we have 49 million rows. I am able to extract them but it takes way too long.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 17:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215477#M68941</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2010-01-21T17:47:19Z</dc:date>
    </item>
    <item>
      <title>Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215478#M68942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Silky,&lt;/P&gt;&lt;P&gt;Thanks. What I needed to do was create temp tables and do the where exists against them.&lt;/P&gt;&lt;P&gt;Thom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 17:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215478#M68942</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2010-01-21T17:48:22Z</dc:date>
    </item>
    <item>
      <title>Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215479#M68943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;I am facing the same problem, but I don't want to perform the whole select-statement before implementing the exists-clause, because the select statement would take ca. 1 hrs, even though I need only a few indexed datasets that would load in a matter of minutes. I can't use a WHERE-clause in this case, because the table is the CE40010 in SAP that connects only via a numbered key to another table - no way to use a 'created-after'-condition to restrict the load.&lt;/P&gt;&lt;P&gt;Is there any correct syntax in QlikView to use an SQL-equivalent of the exists-clause to restrict the data-load in the sql-select-statement?&lt;/P&gt;&lt;P&gt;I hope my explanation is not too confused,&lt;/P&gt;&lt;P&gt;kind regards,&lt;BR /&gt;Lenka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Dec 2010 20:51:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215479#M68943</guid>
      <dc:creator />
      <dc:date>2010-12-19T20:51:24Z</dc:date>
    </item>
    <item>
      <title>Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215480#M68944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;lenkacfk wrote:Is there any correct syntax in QlikView to use an SQL-equivalent of the exists-clause to restrict the data-load in the sql-select-statement?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If you don't have too many values, you could turn them into a variable to plug into the SQL. Something along these lines, though I may of course have syntax or other errors:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Table to Help Build our Variable]:&lt;BR /&gt;LOAD concat(distinct SomeKeyField,chr(39)&amp;amp;','&amp;amp;chr(39)) as KeyValues&lt;BR /&gt;RESIDENT [Some Existing Table]&lt;BR /&gt;;&lt;BR /&gt;LET vKeyValues = chr(39) &amp;amp; peek('KeyValues') &amp;amp; chr(39)&lt;BR /&gt;;&lt;BR /&gt;DROP TABLE [Table to Help Build our Variable]&lt;BR /&gt;;&lt;BR /&gt;[Table from SQL]:&lt;BR /&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;...&lt;BR /&gt;WHERE SomeKeyField IN($(vKeyFields))&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 19:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215480#M68944</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-12-20T19:39:46Z</dc:date>
    </item>
    <item>
      <title>Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215481#M68945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;happy new year! And thanks for your suggestion, but meanwhile I've found out from the customer that he only updates that table twice a month, so I will just do a full reload then and spare myself the hassle with the WHERE-IN-statement. But it's good to know that that, at least, works in QlikView-SQL-syntax.&lt;/P&gt;&lt;P&gt;Thanks again for your help,&lt;BR /&gt;best wishes,&lt;/P&gt;&lt;P&gt;Lenka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 13:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215481#M68945</guid>
      <dc:creator />
      <dc:date>2011-01-03T13:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Where Exists...</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215482#M68946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John et al,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your example works as advertised &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For anyone who uses this.&amp;nbsp; The editor will show an error on the following line: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD concat(distinct `I_Vin_Last_8`,chr(39)&amp;amp;','&amp;amp;chr(39)) as KeyValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The editor will show the error line on the first chr(39) but it runs and populated the variable correctly regardless of the little red squiggles ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The In() with the contents of the variable and the query ran successfully,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;As an FYI using in for a long list is going to be very slow but i have no ideawhat the cut off recommendation might be or what alternative may exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 19:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/215482#M68946</guid>
      <dc:creator />
      <dc:date>2012-01-23T19:21:37Z</dc:date>
    </item>
  </channel>
</rss>

