<?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 Concatenate three tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299371#M1199340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to concatenate three tables. First I concatenated two of my tables.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ToDos&lt;/EM&gt;:&lt;BR /&gt;SQL SELECT&lt;BR /&gt; "No_",&lt;BR /&gt; Date,&lt;BR /&gt; "Contact No_",&lt;BR /&gt; Description&lt;BR /&gt;FROM "To-do" WHERE Status = 2;&lt;/P&gt;&lt;P&gt;CONCATENATE (ToDos) SQL SELECT&lt;BR /&gt; Name,&lt;BR /&gt; "Company No_",&lt;BR /&gt; "Responsibility Center",&lt;BR /&gt; "Characteristic A",&lt;BR /&gt; "Characteristic B"&lt;BR /&gt;FROM Contact&lt;BR /&gt; INNER JOIN "To-do" ON (Contact."No_" = "To-do"."Contact No_")&lt;BR /&gt; WHERE ("To-do".Status = 2);&lt;/P&gt;&lt;P&gt;This seems to work, but when I (right) click on Preview in table structure overview I see none of the joined columns is filled. Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I add a third table where a Description to "Characteristic A" of Contact is stored?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jan 2011 13:47:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-11T13:47:32Z</dc:date>
    <item>
      <title>Concatenate three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299371#M1199340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to concatenate three tables. First I concatenated two of my tables.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ToDos&lt;/EM&gt;:&lt;BR /&gt;SQL SELECT&lt;BR /&gt; "No_",&lt;BR /&gt; Date,&lt;BR /&gt; "Contact No_",&lt;BR /&gt; Description&lt;BR /&gt;FROM "To-do" WHERE Status = 2;&lt;/P&gt;&lt;P&gt;CONCATENATE (ToDos) SQL SELECT&lt;BR /&gt; Name,&lt;BR /&gt; "Company No_",&lt;BR /&gt; "Responsibility Center",&lt;BR /&gt; "Characteristic A",&lt;BR /&gt; "Characteristic B"&lt;BR /&gt;FROM Contact&lt;BR /&gt; INNER JOIN "To-do" ON (Contact."No_" = "To-do"."Contact No_")&lt;BR /&gt; WHERE ("To-do".Status = 2);&lt;/P&gt;&lt;P&gt;This seems to work, but when I (right) click on Preview in table structure overview I see none of the joined columns is filled. Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I add a third table where a Description to "Characteristic A" of Contact is stored?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 13:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299371#M1199340</guid>
      <dc:creator />
      <dc:date>2011-01-11T13:47:32Z</dc:date>
    </item>
    <item>
      <title>Concatenate three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299372#M1199341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you're after joins instead of concatenation.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;ToDos:&lt;BR /&gt;LOAD&lt;BR /&gt; "No_" as "To Do"&lt;BR /&gt;,"Date"&lt;BR /&gt;,"Contact No_" as "Contact"&lt;BR /&gt;,"Description"&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; "No_",&lt;BR /&gt;,"Date"&lt;BR /&gt;,"Contact No_"&lt;BR /&gt;, Description&lt;BR /&gt;FROM "To-do"&lt;BR /&gt;WHERE Status = 2&lt;BR /&gt;;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;INNER JOIN (ToDos)&lt;BR /&gt;LOAD&lt;BR /&gt; "No_" as "Contact"&lt;BR /&gt;,"Name"&lt;BR /&gt;,"Company No_" AS "Company"&lt;BR /&gt;,"Responsibility Center"&lt;BR /&gt;,"Characteristic A"&lt;BR /&gt;,"Characteristic B"&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; "No_"&lt;BR /&gt;,"Name"&lt;BR /&gt;,"Company No_"&lt;BR /&gt;,"Responsibility Center"&lt;BR /&gt;,"Characteristic A"&lt;BR /&gt;,"Characteristic B"&lt;BR /&gt;FROM Contact&lt;BR /&gt;;&lt;BR /&gt;INNER JOIN (ToDos)&lt;BR /&gt;LOAD&lt;BR /&gt; "Characteristic" as "Characteristic A"&lt;BR /&gt;,"Characteristic Description" as "Characteristic A Description"&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; "Characteristic"&lt;BR /&gt;,"Characteristic Description"&lt;BR /&gt;FROM Characteristics&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Alternatively, you can do the joins and renaming in the SQL. I don't, because instead I dump fairly raw tables to QVDs, and I'm doing the joins on loads from QVDs in the actual application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 01:27:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299372#M1199341</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-01-12T01:27:46Z</dc:date>
    </item>
    <item>
      <title>Concatenate three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299373#M1199342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like the last join should be LEFT rather than INNER.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 03:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299373#M1199342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-12T03:31:42Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Concatenate three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299374#M1199343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer. It seems to work. &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;But I've got a question regarding understanding. If I do it like this&lt;/P&gt;&lt;P style="PADDING-LEFT:30px;"&gt;ToDos:&lt;BR /&gt;SQL SELECT&lt;BR /&gt; "No_" as "To Do"&lt;BR /&gt;,"Date"&lt;BR /&gt;,"Contact No_" as "Contact"&lt;BR /&gt;,"Description"&lt;BR /&gt;FROM "To-do"&lt;BR /&gt;WHERE Status = 2&lt;BR /&gt;;&lt;BR /&gt;INNER JOIN (ToDos)&lt;BR /&gt;LOAD&lt;BR /&gt; "No_" as "Contact"&lt;BR /&gt;,"Name"&lt;BR /&gt;,"Company No_" AS "Company"&lt;BR /&gt;,"Responsibility Center"&lt;BR /&gt;,"Characteristic A"&lt;BR /&gt;,"Characteristic B"&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; "No_"&lt;BR /&gt;,"Name"&lt;BR /&gt;,"Company No_"&lt;BR /&gt;,"Responsibility Center"&lt;BR /&gt;,"Characteristic A"&lt;BR /&gt;,"Characteristic B"&lt;BR /&gt;FROM Contact&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Where do I say that I only want those records from Contact that match with the given Contact No. from To-Do? Is it because of the same field name defined by "as"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 09:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299374#M1199343</guid>
      <dc:creator />
      <dc:date>2011-01-12T09:59:18Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Concatenate three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299375#M1199344</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;einsTeIn.NET wrote:Where do I say that I only want those records from Contact that match with the given Contact No. from To-Do? Is it because of the same field name defined by "as"?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Yes, QlikView joins by matching field names. So that will inner join on what we've renamed to "Contact".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 18:46:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299375#M1199344</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-01-12T18:46:03Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: Concatenate three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299376#M1199345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 08:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299376#M1199345</guid>
      <dc:creator />
      <dc:date>2011-01-13T08:39:27Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Concatenate three tables</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299377#M1199346</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;Michael Solomovich wrote:&lt;BR /&gt;Looks like the last join should be LEFT rather than INNER. &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;That was also right! Thanks, Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 11:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-three-tables/m-p/299377#M1199346</guid>
      <dc:creator />
      <dc:date>2011-01-13T11:19:07Z</dc:date>
    </item>
  </channel>
</rss>

