<?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: How to create a unique key for same column name in two tables but different data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299353#M831858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you describe what rules or algorithm you would use to associate the two rows together?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jun 2017 22:02:21 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2017-06-15T22:02:21Z</dc:date>
    <item>
      <title>How to create a unique key for same column name in two tables but different data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299346#M831851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Consider the following &lt;STRONG&gt;Employee table&lt;/STRONG&gt; and the &lt;STRONG&gt;Data source ( Excel )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="153" style="border: 1px solid #000000; width: 537px; height: 155px;" width="535"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Emp_id &lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Emp_Name&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Designation&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;101&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Sharmila&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Developer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;201&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Rency&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Testing&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;311&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Rita&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Testing&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DataSource MSAccess Database:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="153" style="border: 1px solid rgb(0, 0, 0); font-size: 13.3333px; width: 535px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Emp_id &lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Employee Name&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Status&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Sharmila Devi Venkatesan&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Regular&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Rency.M&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;SPAN style="font-size: 13.3333px; text-align: center;"&gt;Regular&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Rita John&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Contract&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem here is I have same column(Emp_id) in two tables in different sources but I need to combine these two tables. And I dont have a unique field in both tables expect Emp_id,Employee Name but it has different data inside it.How can I combine these two tables by forming a unique key?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299346#M831851</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a unique key for same column name in two tables but different data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299347#M831852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharmila!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must have mapping table and use ApplyMap function to join the data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapEmpID:&lt;/P&gt;&lt;P&gt;Mapping Load&lt;/P&gt;&lt;P&gt;Emp_id&amp;nbsp; As Source1&lt;/P&gt;&lt;P&gt;To As Source2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;From ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join(Table1)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Applymap('MapEmpID', Emp_id) as Emp_id,&lt;/P&gt;&lt;P&gt;Status&lt;/P&gt;&lt;P&gt;resident Table2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 20:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299347#M831852</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2017-06-15T20:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a unique key for same column name in two tables but different data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299348#M831853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it is not working. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 20:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299348#M831853</guid>
      <dc:creator />
      <dc:date>2017-06-15T20:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a unique key for same column name in two tables but different data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299349#M831854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please describe your expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 21:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299349#M831854</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-06-15T21:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a unique key for same column name in two tables but different data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299350#M831855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there some pattern that maps the values to each other?&amp;nbsp; In your sample you show 101 = 1. Is it as simple as taking the first digit or is the data more random than that?&amp;nbsp; Do you need to match on the employee name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 21:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299350#M831855</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-06-15T21:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a unique key for same column name in two tables but different data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299351#M831856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My expected result should be like below:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="149" style="border: 1px solid rgb(0, 0, 0); font-size: 13px; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Lucida Grande&amp;quot;, sans-serif; color: rgb(61, 61, 61); width: 531px; height: 151px;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;Emp_id&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;Emp_Name&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;Designation&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;Status&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;101_1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;Sharmila&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;Developer&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;Regular &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;201_2&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;Rency&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;Testing&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-align: center;"&gt;Regular&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;311_3&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;Rita&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;Testing&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;Contract&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both tables have the same employee record but different &lt;STRONG&gt;Emp_id&lt;/STRONG&gt; is maintained for both. And also in one Data source Full name of an employee is stored in other source only the First Name is stored. So combining both Emp_id I need to create a unique Emp_id column.How can we make it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 21:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299351#M831856</guid>
      <dc:creator />
      <dc:date>2017-06-15T21:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a unique key for same column name in two tables but different data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299352#M831857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it is not a pattern rather it is a random digit with different values. No even employee name is maintained differently one with FullName and other with only FirstName.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 21:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299352#M831857</guid>
      <dc:creator />
      <dc:date>2017-06-15T21:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a unique key for same column name in two tables but different data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299353#M831858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you describe what rules or algorithm you would use to associate the two rows together?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 22:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299353#M831858</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-06-15T22:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a unique key for same column name in two tables but different data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299354#M831859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check this?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Table1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD Emp_id As Emp1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Capitalize(Emp_Name) As Fname,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Designation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="264276" data-objecttype="1" href="https://community.qlik.com/thread/264276"&gt;https://community.qlik.com/thread/264276&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Left Join&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Table2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD Emp_id As Emp2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Capitalize(SubField(SubField([Employee Name],' ',1),'.',1)) As Fname,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="264276" data-objecttype="1" href="https://community.qlik.com/thread/264276"&gt;https://community.qlik.com/thread/264276&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(html, codepage is 1252, embedded labels, table is @2);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 22:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-unique-key-for-same-column-name-in-two-tables/m-p/1299354#M831859</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2017-06-15T22:25:08Z</dc:date>
    </item>
  </channel>
</rss>

