<?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 Script Help Needed: Create Unique Key by CONCATENATE of 4 columns from 2 different Table. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Script-Help-Needed-Create-Unique-Key-by-CONCATENATE-of-4-columns/m-p/2459606#M98729</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help of writing script of creating unique key of 4 columns from 2 tables. please help me at earliest&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-----------************----------------------&lt;/P&gt;
&lt;P&gt;LIB CONNECT TO 'DATABASE';&lt;/P&gt;
&lt;P&gt;[TABLE 1] :&lt;/P&gt;
&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column 1 as AA&lt;/P&gt;
&lt;P&gt;Column 2 as BB&lt;/P&gt;
&lt;P&gt;Column 3 as CC;&lt;/P&gt;
&lt;P&gt;SQL SELECT "Column 1", "Column 2", "Column 3" FROM DATABASE Table;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[TABLE 2] :&lt;/P&gt;
&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column X as XX&lt;/P&gt;
&lt;P&gt;Column Y as YY&lt;/P&gt;
&lt;P&gt;Column Z as ZZ;&lt;/P&gt;
&lt;P&gt;SQL SELECT "Column X", "Column Y", "Column Z" FROM DATABASE Table;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help me what should I add in the script to create another table or add in any of the above table where I can make unique key as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CONCATENATE: Column Name: UNIQUEKEYADDR = AA&amp;amp;'-'&amp;amp;BB&amp;amp;'-'&amp;amp;XX'-'&amp;amp;YY&lt;/P&gt;
&lt;P&gt;Please help me at earliest !!&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 20:57:01 GMT</pubDate>
    <dc:creator>harry_16</dc:creator>
    <dc:date>2024-11-15T20:57:01Z</dc:date>
    <item>
      <title>Script Help Needed: Create Unique Key by CONCATENATE of 4 columns from 2 different Table.</title>
      <link>https://community.qlik.com/t5/App-Development/Script-Help-Needed-Create-Unique-Key-by-CONCATENATE-of-4-columns/m-p/2459606#M98729</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help of writing script of creating unique key of 4 columns from 2 tables. please help me at earliest&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-----------************----------------------&lt;/P&gt;
&lt;P&gt;LIB CONNECT TO 'DATABASE';&lt;/P&gt;
&lt;P&gt;[TABLE 1] :&lt;/P&gt;
&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column 1 as AA&lt;/P&gt;
&lt;P&gt;Column 2 as BB&lt;/P&gt;
&lt;P&gt;Column 3 as CC;&lt;/P&gt;
&lt;P&gt;SQL SELECT "Column 1", "Column 2", "Column 3" FROM DATABASE Table;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[TABLE 2] :&lt;/P&gt;
&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column X as XX&lt;/P&gt;
&lt;P&gt;Column Y as YY&lt;/P&gt;
&lt;P&gt;Column Z as ZZ;&lt;/P&gt;
&lt;P&gt;SQL SELECT "Column X", "Column Y", "Column Z" FROM DATABASE Table;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help me what should I add in the script to create another table or add in any of the above table where I can make unique key as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CONCATENATE: Column Name: UNIQUEKEYADDR = AA&amp;amp;'-'&amp;amp;BB&amp;amp;'-'&amp;amp;XX'-'&amp;amp;YY&lt;/P&gt;
&lt;P&gt;Please help me at earliest !!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 20:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-Help-Needed-Create-Unique-Key-by-CONCATENATE-of-4-columns/m-p/2459606#M98729</guid>
      <dc:creator>harry_16</dc:creator>
      <dc:date>2024-11-15T20:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help Needed: Create Unique Key by CONCATENATE of 4 columns from 2 different Table.</title>
      <link>https://community.qlik.com/t5/App-Development/Script-Help-Needed-Create-Unique-Key-by-CONCATENATE-of-4-columns/m-p/2459699#M98730</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a composite key by concatenating multiple fields that together.&lt;BR /&gt;Use the Autonumber function to generate a synthetic key in both table.&lt;/P&gt;
&lt;P&gt;[TABLE 1] :&lt;/P&gt;
&lt;P&gt;Load&amp;nbsp;&lt;BR /&gt;Autonumber(AA &amp;amp; BB &amp;amp; CC) as Key,&lt;/P&gt;
&lt;P&gt;[TABLE 2] :&lt;BR /&gt;Autonumber(XX &amp;amp; YY &amp;amp; ZZ) as Key,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CONCATENATE ([TABLE 1])&amp;nbsp; &amp;nbsp;// Concatenate TABLE 1 and TABLE 2&lt;BR /&gt;LOAD &lt;BR /&gt;Key,&lt;BR /&gt;XX,&lt;BR /&gt;YY,&lt;BR /&gt;ZZ&lt;BR /&gt;RESIDENT [TABLE 2];&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;****Hope this resolve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the issue is solved please mark the answer with Accept as Solution &amp;amp; like it.****&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 04:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-Help-Needed-Create-Unique-Key-by-CONCATENATE-of-4-columns/m-p/2459699#M98730</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-06-06T04:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help Needed: Create Unique Key by CONCATENATE of 4 columns from 2 different Table.</title>
      <link>https://community.qlik.com/t5/App-Development/Script-Help-Needed-Create-Unique-Key-by-CONCATENATE-of-4-columns/m-p/2459946#M98759</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Thanks for the revert,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create new table with &lt;SPAN&gt;Concatenate&amp;nbsp;of columns of Table 1 and 2. I will still need the data of Table 1 and Table 2 individual for analysis.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So just to clear I will need a column that is&amp;nbsp;Concatenate of Column 1&amp;amp;Column 2&amp;amp; Column X&amp;amp; Column Y in new table.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;please help me in this&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 14:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-Help-Needed-Create-Unique-Key-by-CONCATENATE-of-4-columns/m-p/2459946#M98759</guid>
      <dc:creator>harry_16</dc:creator>
      <dc:date>2024-06-06T14:43:48Z</dc:date>
    </item>
  </channel>
</rss>

