<?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: load 2 tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-2-tables/m-p/1538700#M746738</link>
    <description>&lt;P&gt;Because the two tables have exactly the same fields. If that's the case then Qlikview automatically concatenates the tables.&lt;/P&gt;&lt;P&gt;If you don't want that then you can use the NoConcatenate keyword in front of the Select keyword.&lt;/P&gt;&lt;P&gt;Personally, I think that sounds like bad idea in this case. I'd add a Source field to register where the data came from, but I'd keep all the records in one table.&lt;/P&gt;&lt;PRE&gt;table1:
SELECT *, 'prod' as Source
FROM prod.queries
where year(query_time) &amp;gt; '2018';

CONCATENATE (table1)

SELECT *, 'pmx' as Source
FROM pmx.queries
where year(query_time) &amp;gt; '2018';&lt;/PRE&gt;&lt;P&gt;The field Source can then be used if you need to select data from a specific source.&lt;/P&gt;</description>
    <pubDate>Sat, 02 Feb 2019 12:05:24 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2019-02-02T12:05:24Z</dc:date>
    <item>
      <title>load 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/load-2-tables/m-p/1538694#M746736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have 2 tables to load via mysql , both tables have the same fields , i need after the load of the sql to have 2 tables in the qlikview so i can use each table , when i am running this i am getting all in "table1" and not table 1 and table 2 , any idea why ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;table1:&lt;BR /&gt;SELECT *&lt;BR /&gt;FROM prod.queries&lt;BR /&gt;where year(query_time) &amp;gt; '2018';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;table2:&lt;BR /&gt;SELECT *&lt;BR /&gt;FROM pmx.queries&lt;BR /&gt;where year(query_time) &amp;gt; '2018';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-2-tables/m-p/1538694#M746736</guid>
      <dc:creator>grahum</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: load 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/load-2-tables/m-p/1538699#M746737</link>
      <description>Hi, that can be because both tables has the same field names, and is doing an autoconcatenation, joining both tablas in one.&lt;BR /&gt;&lt;BR /&gt;NoConcatenate or set "Qualify *;" at start can avoid, also you can add a dedicated field to identify the origin of each data:&lt;BR /&gt;table1:&lt;BR /&gt;SELECT *,&lt;BR /&gt;'prod' as Origin&lt;BR /&gt;FROM prod.queries&lt;BR /&gt;where year(query_time) &amp;gt; '2018';&lt;BR /&gt;&lt;BR /&gt;table2:&lt;BR /&gt;SELECT *,&lt;BR /&gt;'pmx' as Origin&lt;BR /&gt;FROM pmx.queries&lt;BR /&gt;where year(query_time) &amp;gt; '2018';</description>
      <pubDate>Sat, 02 Feb 2019 12:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-2-tables/m-p/1538699#M746737</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-02-02T12:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: load 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/load-2-tables/m-p/1538700#M746738</link>
      <description>&lt;P&gt;Because the two tables have exactly the same fields. If that's the case then Qlikview automatically concatenates the tables.&lt;/P&gt;&lt;P&gt;If you don't want that then you can use the NoConcatenate keyword in front of the Select keyword.&lt;/P&gt;&lt;P&gt;Personally, I think that sounds like bad idea in this case. I'd add a Source field to register where the data came from, but I'd keep all the records in one table.&lt;/P&gt;&lt;PRE&gt;table1:
SELECT *, 'prod' as Source
FROM prod.queries
where year(query_time) &amp;gt; '2018';

CONCATENATE (table1)

SELECT *, 'pmx' as Source
FROM pmx.queries
where year(query_time) &amp;gt; '2018';&lt;/PRE&gt;&lt;P&gt;The field Source can then be used if you need to select data from a specific source.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 12:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-2-tables/m-p/1538700#M746738</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-02-02T12:05:24Z</dc:date>
    </item>
  </channel>
</rss>

