<?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 Join 2 tables but excluding elements from table 2 absent from table 1 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-2-tables-but-excluding-elements-from-table-2-absent-from/m-p/434693#M700127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get data from a mysql table (customer ID / Mail_registration) and to get only results of customer ID that exist in my 1st table (taken from a csv):&lt;/P&gt;&lt;P&gt;I've tried a left join like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my master table above and then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO idb01 (XUserId isxxxxxxxxxxxxx , XPassword is xxxxxxxxxxxxx);&lt;/P&gt;&lt;P&gt;LEFT JOIN (master)&lt;/P&gt;&lt;P&gt;SQL SELECT customerCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mailMagazineCode&lt;/P&gt;&lt;P&gt;FROM fujiyama.MailMagazineSubscriber;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it seems like it's either duplicating the customerCode or doing something else because my sales appear more than twice as high as the "real" level.&lt;/P&gt;&lt;P&gt;Any idea on how to solve this ?&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Nov 2012 00:00:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-15T00:00:20Z</dc:date>
    <item>
      <title>Join 2 tables but excluding elements from table 2 absent from table 1</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-tables-but-excluding-elements-from-table-2-absent-from/m-p/434693#M700127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get data from a mysql table (customer ID / Mail_registration) and to get only results of customer ID that exist in my 1st table (taken from a csv):&lt;/P&gt;&lt;P&gt;I've tried a left join like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my master table above and then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO idb01 (XUserId isxxxxxxxxxxxxx , XPassword is xxxxxxxxxxxxx);&lt;/P&gt;&lt;P&gt;LEFT JOIN (master)&lt;/P&gt;&lt;P&gt;SQL SELECT customerCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mailMagazineCode&lt;/P&gt;&lt;P&gt;FROM fujiyama.MailMagazineSubscriber;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it seems like it's either duplicating the customerCode or doing something else because my sales appear more than twice as high as the "real" level.&lt;/P&gt;&lt;P&gt;Any idea on how to solve this ?&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 00:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-tables-but-excluding-elements-from-table-2-absent-from/m-p/434693#M700127</guid>
      <dc:creator />
      <dc:date>2012-11-15T00:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 tables but excluding elements from table 2 absent from table 1</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-tables-but-excluding-elements-from-table-2-absent-from/m-p/434694#M700128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is customerCode enough to link both the tables? Should you have more specific key e.g. concatenate CompanyCode with customerCode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Also try grouping your second table.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (master)&lt;/P&gt;&lt;P&gt;SQL SELECT customerCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mailMagazineCode&lt;/P&gt;&lt;P&gt;FROM fujiyama.MailMagazineSubscriber&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GROUP BY customerCode,&amp;nbsp;&amp;nbsp;&amp;nbsp; mailMagazineCode;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;~MultiView&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 10:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-tables-but-excluding-elements-from-table-2-absent-from/m-p/434694#M700128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-15T10:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 tables but excluding elements from table 2 absent from table 1</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-tables-but-excluding-elements-from-table-2-absent-from/m-p/434695#M700129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me give this a try. No need to concatenate anything I guess...&lt;/P&gt;&lt;P&gt;Thanks a lot !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 23:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-tables-but-excluding-elements-from-table-2-absent-from/m-p/434695#M700129</guid>
      <dc:creator />
      <dc:date>2012-11-15T23:30:21Z</dc:date>
    </item>
  </channel>
</rss>

