<?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 Or Concatenate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836652#M294257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Concatination and union are same in qlikview scripting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 04:16:06 GMT</pubDate>
    <dc:creator>hariprasadqv</dc:creator>
    <dc:date>2015-04-28T04:16:06Z</dc:date>
    <item>
      <title>Union Or Concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836647#M294252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a scenario &lt;/P&gt;&lt;P&gt;I would like to know if using Union would be good or Concatenate. If someone can show with an example it would be nice.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load * from Tabl1.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(Table1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;A as [Field1 from Table1],&lt;/P&gt;&lt;P&gt;B as [Field2 from Table1],&lt;/P&gt;&lt;P&gt;C as [Field3 from Table1]&lt;/P&gt;&lt;P&gt;from Table2.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please Note: In Table 2 I am just pulling selective fields in Table 2 and renaming them as fields with the same name as in Table1 so that Concatenate takes care of the mapping.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Am I doing the concatenation correctly?&lt;/P&gt;&lt;P&gt;Or for the same scenario if I have to use a Union what would be the best way of using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 02:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836647#M294252</guid>
      <dc:creator />
      <dc:date>2015-04-28T02:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Union Or Concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836648#M294253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌i am not sure what you mean when you say union? I don't think you have that option in QlikView. What you do have is the ability to concatenate and the ability to join. You would use concatenate if you want to "append" data to your existing data and you would join if you have two tables which have common fields and you want to add a new column from one to the another. For example for concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;P&gt;dim, value&lt;/P&gt;&lt;P&gt;A,20&lt;/P&gt;&lt;P&gt;B,30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2&lt;/P&gt;&lt;P&gt;dim, value&lt;/P&gt;&lt;P&gt;C,90&lt;/P&gt;&lt;P&gt;D,100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i do something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[dim, value&lt;/P&gt;&lt;P&gt;A,20&lt;/P&gt;&lt;P&gt;B, 30&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate (Table1)&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[dim, value&lt;/P&gt;&lt;P&gt;C,90&lt;/P&gt;&lt;P&gt;D,100&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would result in a table like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim, value&lt;/P&gt;&lt;P&gt;A,20&lt;/P&gt;&lt;P&gt;B,30&lt;/P&gt;&lt;P&gt;C,90&lt;/P&gt;&lt;P&gt;D,100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example for join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;P&gt;dim,value&lt;/P&gt;&lt;P&gt;A,20&lt;/P&gt;&lt;P&gt;B,30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table3&lt;/P&gt;&lt;P&gt;dim,price&lt;/P&gt;&lt;P&gt;A, 2&lt;/P&gt;&lt;P&gt;B, 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can join them the following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[dim,value&lt;/P&gt;&lt;P&gt;A,20&lt;/P&gt;&lt;P&gt;B,30&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join (Table1)&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[dim, price&lt;/P&gt;&lt;P&gt;A,2&lt;/P&gt;&lt;P&gt;B,5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would result in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim,value,price&lt;/P&gt;&lt;P&gt;A,20,2&lt;/P&gt;&lt;P&gt;B,30,5&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;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 03:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836648#M294253</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-28T03:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Union Or Concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836649#M294254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Thx for the reply.&lt;/P&gt;&lt;P&gt;Can you please provide for my script example as I am trying load from qvds&lt;/P&gt;&lt;P&gt;and renaming my fields in table2 to make them identical as in table and&lt;/P&gt;&lt;P&gt;appending.&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Riz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 03:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836649#M294254</guid>
      <dc:creator />
      <dc:date>2015-04-28T03:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Union Or Concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836650#M294255</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;In Qlikview UNION and Concatenate both are same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you write Sql select statement then you use UNION&lt;/P&gt;&lt;P&gt;and when you write LOAD statement i.e. QlikView Script then you use Concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both work Similar manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 03:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836650#M294255</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-04-28T03:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Union Or Concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836651#M294256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;just to clarify: Concatenate is the QlikView equivalent to SQL Union,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 04:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836651#M294256</guid>
      <dc:creator>jaimeaguilar</dc:creator>
      <dc:date>2015-04-28T04:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Union Or Concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836652#M294257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Concatination and union are same in qlikview scripting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 04:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836652#M294257</guid>
      <dc:creator>hariprasadqv</dc:creator>
      <dc:date>2015-04-28T04:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Union Or Concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836653#M294258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The AUTO CONCATENATION behaviour of QlikView load scripts when loading tables is similar to SQL UNION ALL as neither removes duplicates. Using CONCATENATE LOAD - which is what is called FORCED CONCATENATION - QlikView will make one table out of the two even if some or all of the fields are different - leaving fields that exist in one but not the other with null values. That can be done with SQL UNION too if you manually create the missing columns for each table in your SQL statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no mapping as such taking place - only the shared fields aligning into one field of course.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 05:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-Or-Concatenate/m-p/836653#M294258</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-04-28T05:17:30Z</dc:date>
    </item>
  </channel>
</rss>

