<?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 Keeping the table structure in SQL Join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918671#M986898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i could never find an answer to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use an SQL Select statement with joins QlikView creates only one table for all the selected fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to keep the multi table structure from my SQL server in QlikView ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks and Greetings&lt;/P&gt;&lt;P&gt;Hans&lt;IMG alt="Unbenannt.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94317_Unbenannt.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 20:03:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-28T20:03:27Z</dc:date>
    <item>
      <title>Keeping the table structure in SQL Join</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918671#M986898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i could never find an answer to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use an SQL Select statement with joins QlikView creates only one table for all the selected fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to keep the multi table structure from my SQL server in QlikView ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks and Greetings&lt;/P&gt;&lt;P&gt;Hans&lt;IMG alt="Unbenannt.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94317_Unbenannt.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 20:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918671#M986898</guid>
      <dc:creator />
      <dc:date>2015-07-28T20:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping the table structure in SQL Join</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918672#M986899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't join in SQL&lt;/P&gt;&lt;P&gt;makes 2 load in qlik, each one from a sql table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;load *;&lt;/P&gt;&lt;P&gt;SQL select * from table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;load *;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SQL select * from table2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 20:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918672#M986899</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-07-28T20:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping the table structure in SQL Join</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918673#M986900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but will the data still be related (joined) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in the Movies database FilmCountryID and CountryID need to be joined. From the names I don't see how QlikView could join both IDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the data would be useless. Do I first have to rename all related columns in SQL ? That would be inconvenient.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 08:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918673#M986900</guid>
      <dc:creator />
      <dc:date>2015-07-29T08:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping the table structure in SQL Join</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918674#M986901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rename the fields during the QV load statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;CountryID As NewFieldname&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Sql select........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need the two ID's to match in your end application for QV to join them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 08:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918674#M986901</guid>
      <dc:creator />
      <dc:date>2015-07-29T08:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping the table structure in SQL Join</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918675#M986902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The QV data model works very differently than a SQL database and you will often have a data model that is differently structured than the source data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way an associative data model works is that associations are made by using the same field name in both tables. If there are multiple fields in common, then QV will create a composite key (aka synthetic key). So yes, you may need to alias the column names during loading to get related fields to associate and prevent unrelated fields with the same name from associating. No need to change the names in SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 08:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918675#M986902</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-29T08:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping the table structure in SQL Join</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918676#M986903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Hans Lauer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand your problem, Even I have faced the same issue.&lt;/P&gt;&lt;P&gt;But QV Data model works differently, it does the join based on the column names.&lt;/P&gt;&lt;P&gt;So in order to have both the tables in your qlikview document, you should load it twice and rename the fields in either one of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 08:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918676#M986903</guid>
      <dc:creator />
      <dc:date>2015-07-29T08:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping the table structure in SQL Join</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918677#M986904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you have to rename the field (or fields, depends)&amp;nbsp; to associate the 2 tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 16:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918677#M986904</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-07-29T16:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping the table structure in SQL Join</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918678#M986905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the answers, the solution was quite obvious, I somehow made things unnecessarily complicated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This also explains why the "select" button for SQL tables only allows one table at a time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 17:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-table-structure-in-SQL-Join/m-p/918678#M986905</guid>
      <dc:creator />
      <dc:date>2015-07-29T17:46:24Z</dc:date>
    </item>
  </channel>
</rss>

