<?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: How to verify if 'Left join...where exists' worked correctly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-verify-if-Left-join-where-exists-worked-correctly/m-p/1799361#M1211531</link>
    <description>&lt;P&gt;the combination left join #key where exists #key is not nesseary.&lt;/P&gt;&lt;P&gt;A left join only would join datas where the #key field in the join table exists.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise you would use an outer join that there are more datas than before.&lt;/P&gt;&lt;P&gt;Or use an inner join only to have only datas from noth tables from.&lt;/P&gt;&lt;P&gt;To see which datas have only datas in the first table, create a table, use #key, a field from first table (eg event_id) and a field from second table (rltd_event_id).&lt;/P&gt;&lt;P&gt;the sort by rlt_event_id, datasets woth no values should stay at the end.&lt;/P&gt;&lt;P&gt;Regads.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2021 10:50:33 GMT</pubDate>
    <dc:creator>martinpohl</dc:creator>
    <dc:date>2021-04-14T10:50:33Z</dc:date>
    <item>
      <title>How to verify if 'Left join...where exists' worked correctly</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-verify-if-Left-join-where-exists-worked-correctly/m-p/1799352#M1211528</link>
      <description>&lt;P&gt;hi guys&lt;/P&gt;&lt;P&gt;My script looks like this..&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Temp_Events:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;LOAD #Key_Events, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Event_Id, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Event_Tp_Cd, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;IsRequest, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;IsEvent, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Event_Type, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Unq_No_In_Orig_Src_Sys, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Orig_Src_Sys_Cd, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Source_Name, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Event_Strt_Date, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Event_Strt_Tm, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Event_Strt_Dt_Tm, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Event_End_Date, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Event_End_Tm, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Event_End_Dt_Tm, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;SubtractMillisecondFromTS3, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Sys_End_Tms, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Sys_Strt_Tms&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;FROM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$(vQvData)Temp_Events.qvd(qvd);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;left join (Temp_Events)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;load &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;AutoNumber(Event_Id &amp;amp; '_' &amp;amp; Orig_Src_Sys_Cd) as #Key_Events,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Rltd_Event_Id ,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;1 as IsResponse&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;where exists (#Key_Events, AutoNumber(Event_Id &amp;amp; '_' &amp;amp; Orig_Src_Sys_Cd))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;select&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Rltd_Event_Id , &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Event_Id ,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Event_Event_Rltnp_Tp_Cd,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Rlt.Orig_Src_Sys_Cd&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;FROM &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$(v)."Event_Event_Rltnp" RlT &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;left join $(vLkp).Lkp_System SYS&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;ON RlT.Orig_Src_Sys_Cd = SYS.Orig_Src_Sys_Cd &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;AND SYS.orig_src_sys_cd = SYS.system_cd&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;What is the quickest way to see if the join worked correctly? I guess one would need to see if some field is null or not by doing a resident load, but my tables are HUGE, ideally would not want to do that.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 10:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-verify-if-Left-join-where-exists-worked-correctly/m-p/1799352#M1211528</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2021-04-14T10:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to verify if 'Left join...where exists' worked correctly</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-verify-if-Left-join-where-exists-worked-correctly/m-p/1799361#M1211531</link>
      <description>&lt;P&gt;the combination left join #key where exists #key is not nesseary.&lt;/P&gt;&lt;P&gt;A left join only would join datas where the #key field in the join table exists.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise you would use an outer join that there are more datas than before.&lt;/P&gt;&lt;P&gt;Or use an inner join only to have only datas from noth tables from.&lt;/P&gt;&lt;P&gt;To see which datas have only datas in the first table, create a table, use #key, a field from first table (eg event_id) and a field from second table (rltd_event_id).&lt;/P&gt;&lt;P&gt;the sort by rlt_event_id, datasets woth no values should stay at the end.&lt;/P&gt;&lt;P&gt;Regads.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 10:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-verify-if-Left-join-where-exists-worked-correctly/m-p/1799361#M1211531</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2021-04-14T10:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to verify if 'Left join...where exists' worked correctly</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-verify-if-Left-join-where-exists-worked-correctly/m-p/1799382#M1211533</link>
      <description>&lt;P&gt;hi Martin,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-verify-if-Left-join-where-exists-worked-correctly/m-p/1799382#M1211533</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2021-04-14T11:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to verify if 'Left join...where exists' worked correctly</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-verify-if-Left-join-where-exists-worked-correctly/m-p/1799388#M1211535</link>
      <description>&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;I now remember why I used the "where exists". The table that I join to is HUUUUUUUGE (billions of rows) and I was hoping by using the Where Exists, I would limit the records returned and the reload time as well.&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-verify-if-Left-join-where-exists-worked-correctly/m-p/1799388#M1211535</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2021-04-14T11:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to verify if 'Left join...where exists' worked correctly</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-verify-if-Left-join-where-exists-worked-correctly/m-p/1799390#M1211537</link>
      <description>&lt;P&gt;because the sql statement don't know anything from the exists statement, in the first step of the load all datas are selected on database. Then only exists values are transfered to the load script. I dont't know if there is a time or performance effect.&lt;/P&gt;&lt;P&gt;Regard&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-verify-if-Left-join-where-exists-worked-correctly/m-p/1799390#M1211537</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2021-04-14T11:56:37Z</dc:date>
    </item>
  </channel>
</rss>

