<?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: Union in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Union/m-p/415803#M698877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table A:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join(Table A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;....&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>Thu, 07 Feb 2013 15:40:17 GMT</pubDate>
    <dc:creator>SunilChauhan</dc:creator>
    <dc:date>2013-02-07T15:40:17Z</dc:date>
    <item>
      <title>Union</title>
      <link>https://community.qlik.com/t5/QlikView/Union/m-p/415802#M698876</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 have two tables with all the same field names:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table A has 28000 records (QVD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B has 100,000 records (SQL Server Table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading Table A first and want to combine Table B with Table A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While combining the TABLE A and TABLE B i want to keep all records from TABLE A but exclude the same records from TABLE B based on MEMBERID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually we use union in SQL.. How can we achieve the simliar result while loading in QLikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 15:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union/m-p/415802#M698876</guid>
      <dc:creator>hkg_qlik</dc:creator>
      <dc:date>2013-02-07T15:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Union</title>
      <link>https://community.qlik.com/t5/QlikView/Union/m-p/415803#M698877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table A:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join(Table A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;....&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>Thu, 07 Feb 2013 15:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union/m-p/415803#M698877</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2013-02-07T15:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Union</title>
      <link>https://community.qlik.com/t5/QlikView/Union/m-p/415804#M698878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i use join I see duplicate records for members present in Table A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 15:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union/m-p/415804#M698878</guid>
      <dc:creator>hkg_qlik</dc:creator>
      <dc:date>2013-02-07T15:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Union</title>
      <link>https://community.qlik.com/t5/QlikView/Union/m-p/415805#M698879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, you can use the EXISTS function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you read the first table (TABLE_A).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creates an additional field identifier for this table: (MEMBERID_A).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then makes the union between tables using concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the filter of your second table, just add the following filter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE NOT EXISTS (MEMBERID_A, MEMBERID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE_A:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;MEMBERID AS MEMBERID_A,&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE_B:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT_TABLE:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;// DON't USE THE FIELD CREATED (MEMBERID_A)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;RESIDENT TABLE_A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;RESIDENT TABLE_B&lt;/P&gt;&lt;P&gt;WHERE NOT EXISTS(MEMBERID_A, MEMBERID);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 15:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union/m-p/415805#M698879</guid>
      <dc:creator />
      <dc:date>2013-02-07T15:58:24Z</dc:date>
    </item>
  </channel>
</rss>

