<?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: Mapping extract column names and values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Mapping-extract-column-names-and-values/m-p/2285484#M59106</link>
    <description>&lt;P&gt;connect to tMap&lt;/P&gt;&lt;P&gt;- main table with main connection&lt;/P&gt;&lt;P&gt;- lookup table with lookup&lt;/P&gt;&lt;P&gt;use LEFT join by to columns:&lt;/P&gt;&lt;P&gt;- col1 == id&lt;/P&gt;&lt;P&gt;- col3 == value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;map to output&lt;/P&gt;&lt;P&gt;- col1, col3 from main table&lt;/P&gt;&lt;P&gt;- attribute from lookup table&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2019 00:45:40 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2019-01-15T00:45:40Z</dc:date>
    <item>
      <title>Mapping extract column names and values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-extract-column-names-and-values/m-p/2285483#M59105</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a database table that contains a number of columns that I ned to extract to a csv file. During the extract process I need to dynamically alter some of the column names and values based on a mapping table that I've built.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example input (database)&lt;/P&gt;
&lt;P&gt;col1 col2 col3&lt;/P&gt;
&lt;TABLE&gt;
 &lt;TBODY&gt;
  &lt;TR&gt;
   &lt;TD&gt;a&lt;/TD&gt;
   &lt;TD&gt;b&lt;/TD&gt;
   &lt;TD&gt;c&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;a&lt;/TD&gt;
   &lt;TD&gt;b&lt;/TD&gt;
   &lt;TD&gt;d&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;a&lt;/TD&gt;
   &lt;TD&gt;e&lt;/TD&gt;
   &lt;TD&gt;c&lt;/TD&gt;
  &lt;/TR&gt;
 &lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And after being mapped the output should look something like&lt;/P&gt;
&lt;P&gt;ID Name col3&lt;/P&gt;
&lt;TABLE&gt;
 &lt;TBODY&gt;
  &lt;TR&gt;
   &lt;TD&gt;a&lt;/TD&gt;
   &lt;TD&gt;bar&lt;/TD&gt;
   &lt;TD&gt;c&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;a&lt;/TD&gt;
   &lt;TD&gt;bar&lt;/TD&gt;
   &lt;TD&gt;d&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;a&lt;/TD&gt;
   &lt;TD&gt;egg&lt;/TD&gt;
   &lt;TD&gt;c&lt;/TD&gt;
  &lt;/TR&gt;
 &lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using Talent open studio so the dynamic schema components are not available to me . Any suggestions on how I can achieve this? I have done something similar previously however that data was pivoted so that the column names and values were obtained in the data and I could use a tmap to do the mapping&lt;/P&gt;
&lt;P&gt;e.g&lt;/P&gt;
&lt;P&gt;ID Attribute Value&lt;/P&gt;
&lt;TABLE&gt;
 &lt;TBODY&gt;
  &lt;TR&gt;
   &lt;TD&gt;a&lt;/TD&gt;
   &lt;TD&gt;col2&lt;/TD&gt;
   &lt;TD&gt;b&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;a&lt;/TD&gt;
   &lt;TD&gt;col3&lt;/TD&gt;
   &lt;TD&gt;d&lt;/TD&gt;
  &lt;/TR&gt;
 &lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-extract-column-names-and-values/m-p/2285483#M59105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping extract column names and values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-extract-column-names-and-values/m-p/2285484#M59106</link>
      <description>&lt;P&gt;connect to tMap&lt;/P&gt;&lt;P&gt;- main table with main connection&lt;/P&gt;&lt;P&gt;- lookup table with lookup&lt;/P&gt;&lt;P&gt;use LEFT join by to columns:&lt;/P&gt;&lt;P&gt;- col1 == id&lt;/P&gt;&lt;P&gt;- col3 == value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;map to output&lt;/P&gt;&lt;P&gt;- col1, col3 from main table&lt;/P&gt;&lt;P&gt;- attribute from lookup table&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 00:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-extract-column-names-and-values/m-p/2285484#M59106</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-01-15T00:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping extract column names and values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-extract-column-names-and-values/m-p/2285485#M59107</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;thanks for the quick reply. The problem is I need to map the column names dynamically as well, not just the values. My mapping table specifies old and new names for columns so col1 = ID etc. I don't think I can achieve that through a tmap&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 00:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-extract-column-names-and-values/m-p/2285485#M59107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-15T00:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping extract column names and values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-extract-column-names-and-values/m-p/2285486#M59108</link>
      <description>&lt;P&gt;yes, you can not ...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;first of all -dynamic schema - do not help you as well &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;but, you could:&lt;/P&gt; 
&lt;P&gt;- redesign schema for more appropriate (if you can)&lt;/P&gt; 
&lt;P&gt;- use sql for achive what you need - both tables in database (even if it different databases - first step land data to the same database staging table), then use SQL for return mapped data (tSQLinput support any query, bot only table)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 01:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-extract-column-names-and-values/m-p/2285486#M59108</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-01-15T01:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping extract column names and values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-extract-column-names-and-values/m-p/2285487#M59109</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;Yes, I'm thinking I need to do this in the db and then Talend can handle the results. I guess I posted to see if there were any components to do this in Talend&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 01:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-extract-column-names-and-values/m-p/2285487#M59109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-15T01:04:52Z</dc:date>
    </item>
  </channel>
</rss>

