<?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: Combine data from two identical database. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combine-data-from-two-identical-database/m-p/182218#M47949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While I found this a bit hard to follow, I concur that CONCATENATE'ing the datasets appears to be the correct approach.&amp;nbsp; To keep the records identifiable by source, include a field such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'dataset1' AS RecSrc&lt;/P&gt;&lt;P&gt;in the LOAD of dataset1&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;'dataset2' AS RecSrc&lt;/P&gt;&lt;P&gt;in the LOAD of dataset2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then use Set Analysis or possibly Alternate States to analyze the separate data instances.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2012 13:34:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-28T13:34:29Z</dc:date>
    <item>
      <title>Combine data from two identical database.</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-data-from-two-identical-database/m-p/182213#M47944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;body&amp;gt;&amp;lt;p&amp;gt;&amp;lt;qtlend&amp;gt;&amp;lt;/qtlend&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt;Hello everyone!&amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt;I need advice to make it easier, in the construction and maintenance, a merge operation (queuing) of data from two or more identical basic data structures. &amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt;I start from the fact that on every database I've built a Qlik document, which is also the same even when I want mantenre db merged. &amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt;lastrada which could be shorter? &amp;lt;/span&amp;gt;Use CONCATENATE and aliases of the field, being careful to preserve the existing relations between fields? &amp;lt;/span&amp;gt;Use JOIN?&amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt;Can you suggest the right way and quick?&amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt;thanks. &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;&amp;lt;qtlbar id="qtlbar" dir="ltr" style="display: inline; text-align: left; line-height: 100%; padding: 0pt; background-color: #ececec; cursor: pointer; z-index: 999; left: 239px; top: 25px; opacity: 0.9;"&amp;gt;&amp;lt;img class="qtl" title="Copy selction" src="http://www.qtl.co.il/img/copy.png" /&amp;gt;&amp;lt;a title="Search With Google" target="_blank" href="http://www.google.com/search?q=Combine%20data%20from%20two%20identical%20database."&amp;gt;&amp;lt;img src="http://www.google.com/favicon.ico" class="qtl" /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;img src="http://www.qtl.co.il/img/trans.png" title="Translate With Google" class="qtl" /&amp;gt;&amp;lt;iframe id="qtlframe" style="display: none; border: 1px solid #ececec; background-color: white;"&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/qtlbar&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 09:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-data-from-two-identical-database/m-p/182213#M47944</guid>
      <dc:creator>francofiorillo</dc:creator>
      <dc:date>2010-11-11T09:40:46Z</dc:date>
    </item>
    <item>
      <title>Combine data from two identical database.</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-data-from-two-identical-database/m-p/182214#M47945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ciao Franco,&lt;/P&gt;&lt;P&gt;mi potresti spiegare meglio?&lt;/P&gt;&lt;P&gt;Grazie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 10:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-data-from-two-identical-database/m-p/182214#M47945</guid>
      <dc:creator />
      <dc:date>2010-11-11T10:48:20Z</dc:date>
    </item>
    <item>
      <title>Combine data from two identical database.</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-data-from-two-identical-database/m-p/182215#M47946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Normal 0 14 false false false IT X-NONE X-NONE MicrosoftInternetExplorer4 &lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Ti ringrazio per l'interessamento.&lt;/P&gt;&lt;P&gt;Visto che parli in italiano, ti spiego in madrelingua.&lt;/P&gt;&lt;P&gt;Il problema è questo.&lt;/P&gt;&lt;P&gt;Ho un applicativo che è installato in diverse aziende sanitarie (ASL). Parliamo di Psichiatria (!).&lt;/P&gt;&lt;P&gt;Ora a livello regione avrei da unire i vari Data base (tutti uguali) per poter fare un'analisi globale delle attività scientifiche, ricoveri, diagnosi, ecc.)&lt;/P&gt;&lt;P&gt;Ovviamente alcune chiavi del data base, che potrebbero essere uguali nei vari DB, devono rimanere distinte,. Su questo , nessun problema.&lt;/P&gt;&lt;P&gt;Il problema non è tanto nel concatenare tutte le tabelle, ma quello di dover rinominare ,( con AS) tutti i campi non qualificati per fare in modo che i campi delle due tabelle siano uguali.&lt;/P&gt;&lt;P&gt;Ti faccio un esempio:&lt;/P&gt;&lt;P&gt;supponiamo che nel DB dell'Asl di Salerno si abbia la seguente tabella:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unqualify IDPazienti;&lt;/P&gt;&lt;P&gt;PAZIENTI:&lt;/P&gt;&lt;P&gt;Load…….&lt;/P&gt;&lt;P&gt;IDPazienti,&lt;/P&gt;&lt;P&gt;NomePaziente,&lt;/P&gt;&lt;P&gt;IndirizzoPaziente,&lt;/P&gt;&lt;P&gt;eccc:&lt;/P&gt;&lt;P&gt;from SALERNO&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Nel DB dell'Asl di Napoli ci troviamo la stessa tabella:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unqualify IDPazienti;&lt;/P&gt;&lt;P&gt;PAZIENTI1:&lt;/P&gt;&lt;P&gt;Load…….&lt;/P&gt;&lt;P&gt;IDPazienti,&lt;/P&gt;&lt;P&gt;NomePaziente,&lt;/P&gt;&lt;P&gt;IndirizzoPaziente,&lt;/P&gt;&lt;P&gt;eccc:&lt;/P&gt;&lt;P&gt;FROM NAPOLI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ora per fare in modo che i dati delle due tabelle vengano incorporate in un solla tabella si potrebbe fare:&lt;/P&gt;&lt;P style="font-style: italic"&gt;unqualify IDPazienti&lt;/P&gt;&lt;P&gt;PAZIENTI1&lt;I&gt;:&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Concatenate&lt;/B&gt; (PAZIENTI) &lt;B&gt;LOAD&lt;/B&gt;&lt;/P&gt;&lt;P&gt;'C' &amp;amp; IDPazienti &lt;B&gt;as&lt;/B&gt; IDPazienti,&lt;/P&gt;&lt;P&gt;NomePaziente,&lt;/P&gt;&lt;P&gt;IndirizzoPaziente&lt;/P&gt;&lt;P&gt;….&lt;/P&gt;&lt;P&gt;From TabellaPazienti (del DB di Napoli)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Il risultato finale sarebbe :&lt;/P&gt;&lt;P&gt;IDPazienti - PAZIENTI.NomePaziente - PAZIENTI.IndirizzoPaziente - PAZIENTI1.NomePaziente - PAZIENTI1.IndirizzoPaziente&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mentre io voglio una tabella del tipo&lt;/P&gt;&lt;P&gt;IDPazienti - PAZIENTI.NomePaziente - PAZIENTI.IndirizzoPaziente&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per fare questo dovrei (penso…) fare degli alias sulla seconda LOAD e squalificarli. Per esempio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;unqualify IDPazienti,&lt;/I&gt; PAZIENTI NomePaziente, PAZIENTI.IndirizzoPaziente&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;PAZIENTI1&lt;I&gt;:&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Concatenate&lt;/B&gt; (PAZIENTI) &lt;B&gt;LOAD&lt;/B&gt;&lt;/P&gt;&lt;P&gt;'C' &amp;amp; IDPazienti &lt;B&gt;as&lt;/B&gt; IDPazienti,&lt;/P&gt;&lt;P&gt;NomePaziente as PAZIENTI NomePaziente,&lt;/P&gt;&lt;P&gt;IndirizzoPaziente as PAZIENTI.IndirizzoPaziente&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Con questa mia idea penso risolverei, ma la trovo lunga, tediosa e poco elegante.&lt;/P&gt;&lt;P&gt;Puoi darmi un suggerimento?&lt;/P&gt;&lt;P&gt;Grazie .&lt;/P&gt;&lt;P&gt;ciao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 12:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-data-from-two-identical-database/m-p/182215#M47946</guid>
      <dc:creator>francofiorillo</dc:creator>
      <dc:date>2010-11-11T12:08:05Z</dc:date>
    </item>
    <item>
      <title>Combine data from two identical database.</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-data-from-two-identical-database/m-p/182216#M47947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not understand why not concatenate (and I also do not speak italian), could you give more details?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 13:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-data-from-two-identical-database/m-p/182216#M47947</guid>
      <dc:creator />
      <dc:date>2010-11-11T13:28:51Z</dc:date>
    </item>
    <item>
      <title>Combine data from two identical database.</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-data-from-two-identical-database/m-p/182217#M47948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I'm sorry for the Italian (I'm not good at English). I try to translate.&lt;BR /&gt;&lt;BR /&gt;The problem is this.&lt;BR /&gt;&lt;BR /&gt;I have an application that is installed in different health units (ASL). We speak of Psychiatry (!).&lt;BR /&gt;&lt;BR /&gt;Now in the region, a body in which the various health units are managed together, I want to merge the different data base (all equal) to do a comprehensive analysis of scientific activities, admissions, diagnosis, etc.).&lt;BR /&gt;&lt;BR /&gt;Obviously, some of the key data base, which could be the same in different DB, must remain separate. On this, no problem.&lt;BR /&gt;&lt;BR /&gt;The problem is not in the chain all the tables, but that of having to rename, (with AS) all the fields are not qualified to make the fields of the two tables are equal.&lt;BR /&gt;&lt;BR /&gt;Let me give you an example:&lt;BR /&gt;&lt;BR /&gt;Suppose that in the DB ASL Salerno has the following table:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;unqualify IDPazienti;&lt;BR /&gt;&lt;BR /&gt;PATIENTS:&lt;BR /&gt;&lt;BR /&gt;Load ... ....&lt;BR /&gt;&lt;BR /&gt;IDPazienti,&lt;BR /&gt;&lt;BR /&gt;NomePaziente,&lt;BR /&gt;&lt;BR /&gt;IndirizzoPaziente,&lt;BR /&gt;&lt;BR /&gt;ECCC:&lt;BR /&gt;&lt;BR /&gt;from SALERNO&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In DB ASL Naples we find the same table with the same fields:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;unqualify IDPazienti;&lt;BR /&gt;&lt;BR /&gt;PAZIENTI1:&lt;BR /&gt;&lt;BR /&gt;Load ... ....&lt;BR /&gt;&lt;BR /&gt;IDPazienti,&lt;BR /&gt;&lt;BR /&gt;NomePaziente,&lt;BR /&gt;&lt;BR /&gt;IndirizzoPaziente,&lt;BR /&gt;&lt;BR /&gt;ECCC:&lt;BR /&gt;&lt;BR /&gt;FROM NAPLES&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hours to ensure that the data of the two tables are incorporated in a raised table could be done:&lt;BR /&gt;&lt;BR /&gt;unqualify IDPazienti&lt;BR /&gt;&lt;BR /&gt;PAZIENTI1:&lt;BR /&gt;&lt;BR /&gt;Concatenate (PATIENTS) LOAD&lt;BR /&gt;&lt;BR /&gt;'C' &amp;amp; IDPazienti as IDPazienti,&lt;BR /&gt;&lt;BR /&gt;NomePaziente,&lt;BR /&gt;&lt;BR /&gt;IndirizzoPaziente&lt;BR /&gt;&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;From TabellaPazienti (DB of Naples)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The end result would be:&lt;BR /&gt;&lt;BR /&gt;IDPazienti - PAZIENTI.NomePaziente - PAZIENTI.IndirizzoPaziente - PAZIENTI1.NomePaziente - PAZIENTI1.IndirizzoPaziente&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;While I want a table of type&lt;BR /&gt;&lt;BR /&gt;IDPazienti - PAZIENTI.NomePaziente - PAZIENTI.IndirizzoPaziente&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To do this I should (I think ...) to make an alias on the second LOAD and dismissed them. For example&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;unqualify IDPazienti, PATIENTS NomePaziente, PAZIENTI.IndirizzoPaziente&lt;BR /&gt;&lt;BR /&gt;PAZIENTI1:&lt;BR /&gt;&lt;BR /&gt;Concatenate (PATIENTS) LOAD&lt;BR /&gt;&lt;BR /&gt;'C' &amp;amp; IDPazienti as IDPazienti,&lt;BR /&gt;&lt;BR /&gt;NomePaziente as NomePaziente PATIENTS,&lt;BR /&gt;&lt;BR /&gt;IndirizzoPaziente as PAZIENTI.IndirizzoPaziente&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With this idea I think I would answer, but I find long, tedious and inelegant.&lt;BR /&gt;&lt;BR /&gt;Can you give me a hint?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;hello&lt;/P&gt;&lt;DIV class="g-section" id="gt-res-tools"&gt;&lt;DIV class="gt-icon-c" id="gt-res-listen" style="display:none;"&gt;Ascolta&lt;/DIV&gt;&lt;DIV class="gt-icon-c" id="gt-res-roman" style="display:none;"&gt;Trascrizione fonetica&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 13:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-data-from-two-identical-database/m-p/182217#M47948</guid>
      <dc:creator>francofiorillo</dc:creator>
      <dc:date>2010-11-11T13:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Combine data from two identical database.</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-data-from-two-identical-database/m-p/182218#M47949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While I found this a bit hard to follow, I concur that CONCATENATE'ing the datasets appears to be the correct approach.&amp;nbsp; To keep the records identifiable by source, include a field such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'dataset1' AS RecSrc&lt;/P&gt;&lt;P&gt;in the LOAD of dataset1&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;'dataset2' AS RecSrc&lt;/P&gt;&lt;P&gt;in the LOAD of dataset2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then use Set Analysis or possibly Alternate States to analyze the separate data instances.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 13:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-data-from-two-identical-database/m-p/182218#M47949</guid>
      <dc:creator />
      <dc:date>2012-06-28T13:34:29Z</dc:date>
    </item>
  </channel>
</rss>

