<?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: Two tables with the same column name in my data model in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756517#M664198</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;first thing: always qualify your data in first place never forget... QlikView Data Association Model...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André Gomes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jan 2015 15:37:35 GMT</pubDate>
    <dc:creator>agomes1971</dc:creator>
    <dc:date>2015-01-08T15:37:35Z</dc:date>
    <item>
      <title>Two tables with the same column name in my data model</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756512#M664193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the script below, the problem is both tables (client and contact) have a column called "Surname". The script returns contact.Surname; however, I am interesting in client.Surname. IT is unable to rename the column(s). Can I add a prefix to "surname" to specify that I want client's surname? or what is the best way to approach this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Primary_contact&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Surname&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt; FROM client&lt;BR /&gt; left join contact&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;on client_ID = contact_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 14:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756512#M664193</guid>
      <dc:creator />
      <dc:date>2015-01-08T14:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables with the same column name in my data model</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756513#M664194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi presh, I think your best option is espcify wich fields you want in the SQL query:&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Primary_contact&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Surname&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT Primary_contact, client.Surname&lt;BR /&gt; FROM client&amp;nbsp; left join contact &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;on client_ID = contact_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you avoid the SQL query to query values that are not used&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 14:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756513#M664194</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-01-08T14:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables with the same column name in my data model</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756514#M664195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rename it in QlikView like this with your preceding load statement :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Surname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Client Surname] ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 14:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756514#M664195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-08T14:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables with the same column name in my data model</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756515#M664196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would have gone with this option but I am looking at selecting close to 50 columns in actual fact...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 14:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756515#M664196</guid>
      <dc:creator />
      <dc:date>2015-01-08T14:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables with the same column name in my data model</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756516#M664197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try putting this before the load, which will prefix all the output field names with the table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QUALIFY *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And this after&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNQUALIFY *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 15:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756516#M664197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-08T15:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables with the same column name in my data model</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756517#M664198</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;first thing: always qualify your data in first place never forget... QlikView Data Association Model...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André Gomes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 15:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756517#M664198</guid>
      <dc:creator>agomes1971</dc:creator>
      <dc:date>2015-01-08T15:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables with the same column name in my data model</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756518#M664199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, if you don't want to name each field you can try as you said, this doesn't work?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Primary_contact&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt; &lt;SPAN style="color: #800000; font-size: 8pt;"&gt; client.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Surname as Surname&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt; FROM client&lt;BR /&gt; left join contact&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;on client_ID = contact_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually name all fields in select, no matter how many there are, so never tried this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 16:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756518#M664199</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-01-08T16:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables with the same column name in my data model</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756519#M664200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please excuse the late response - I have been off for some days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you briefly explain 'qualify' and 'unqualify' and the reason for them?&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, 20 Jan 2015 11:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756519#M664200</guid>
      <dc:creator />
      <dc:date>2015-01-20T11:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables with the same column name in my data model</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756520#M664201</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;QUALIFY * will rename all the fields with their table names.feildname&lt;/P&gt;&lt;P&gt;UNQUALIFY A :this will not rename the field with their table name&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;load A,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;from table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;table1.A&lt;/P&gt;&lt;P&gt;table.B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qualify *;&lt;/P&gt;&lt;P&gt;Unqualify A;&lt;/P&gt;&lt;P&gt;table2:&lt;/P&gt;&lt;P&gt;LOAD A,&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;from table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;table2.B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 11:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756520#M664201</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-01-20T11:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables with the same column name in my data model</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756521#M664202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try to divide data load in two parts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Client:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;client_ID as id_join,&lt;/P&gt;&lt;P&gt;Primary_contact,&lt;/P&gt;&lt;P&gt;Surname;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM client;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;contact_ID as id_join,&lt;/P&gt;&lt;P&gt;*;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM contact&lt;/P&gt;&lt;P&gt;WHERE EXISTS (id_join, contact_ID);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 11:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756521#M664202</guid>
      <dc:creator>jmmayoral3</dc:creator>
      <dc:date>2015-01-20T11:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables with the same column name in my data model</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756522#M664203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi presh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Primary_contact&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Surname&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; SELECT Primary_contact, client.Surname&lt;BR /&gt;FROM client&amp;nbsp; left join contact &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;on client.client_ID = contact.contact_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 11:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-with-the-same-column-name-in-my-data-model/m-p/756522#M664203</guid>
      <dc:creator />
      <dc:date>2015-01-20T11:51:37Z</dc:date>
    </item>
  </channel>
</rss>

