<?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 Copying and replacing some column values from table A to table B in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Copying-and-replacing-some-column-values-from-table-A-to-table-B/m-p/2345914#M113373</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I´m trying to create a expression from the tMap Expression Builder with this logic:&lt;/P&gt;&lt;P&gt;I have a mysql &lt;B&gt;&lt;U&gt;INPUT &lt;/U&gt;&lt;/B&gt;table called "sucursal" with 2 columns: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"id" &lt;/LI&gt;&lt;LI&gt;"razonsocial"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Column "&lt;B&gt;razonsocial&lt;/B&gt;" has these values: &lt;/P&gt;&lt;P&gt; aaa&lt;/P&gt;&lt;P&gt; bbb&lt;/P&gt;&lt;P&gt; ccc&lt;/P&gt;&lt;P&gt; bbb&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I am trying to create a new column called "empresa" in the OUTPUT table called "sucursal" (see pic attached) which will copy same content of column "razonsocial" (aaa, bbb, ccc, bbb, qqq) &lt;B&gt;BUT &lt;/B&gt;if value is &lt;B&gt;bbb &lt;/B&gt;then it will write &lt;B&gt;zzz&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;So the final content for output table will be:&lt;/P&gt;&lt;P&gt;aaa&lt;/P&gt;&lt;P&gt;&lt;B&gt;zzz&lt;/B&gt;&lt;/P&gt;&lt;P&gt;ccc&lt;/P&gt;&lt;P&gt;&lt;B&gt;zzz&lt;/B&gt;&lt;/P&gt;&lt;P&gt;I've tried to write a expression but I´m not sure to use replaceall, replace or ereplace. Any help, please?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:07:43 GMT</pubDate>
    <dc:creator>FGuijarro</dc:creator>
    <dc:date>2024-11-15T22:07:43Z</dc:date>
    <item>
      <title>Copying and replacing some column values from table A to table B</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Copying-and-replacing-some-column-values-from-table-A-to-table-B/m-p/2345914#M113373</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I´m trying to create a expression from the tMap Expression Builder with this logic:&lt;/P&gt;&lt;P&gt;I have a mysql &lt;B&gt;&lt;U&gt;INPUT &lt;/U&gt;&lt;/B&gt;table called "sucursal" with 2 columns: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"id" &lt;/LI&gt;&lt;LI&gt;"razonsocial"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Column "&lt;B&gt;razonsocial&lt;/B&gt;" has these values: &lt;/P&gt;&lt;P&gt; aaa&lt;/P&gt;&lt;P&gt; bbb&lt;/P&gt;&lt;P&gt; ccc&lt;/P&gt;&lt;P&gt; bbb&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I am trying to create a new column called "empresa" in the OUTPUT table called "sucursal" (see pic attached) which will copy same content of column "razonsocial" (aaa, bbb, ccc, bbb, qqq) &lt;B&gt;BUT &lt;/B&gt;if value is &lt;B&gt;bbb &lt;/B&gt;then it will write &lt;B&gt;zzz&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;So the final content for output table will be:&lt;/P&gt;&lt;P&gt;aaa&lt;/P&gt;&lt;P&gt;&lt;B&gt;zzz&lt;/B&gt;&lt;/P&gt;&lt;P&gt;ccc&lt;/P&gt;&lt;P&gt;&lt;B&gt;zzz&lt;/B&gt;&lt;/P&gt;&lt;P&gt;I've tried to write a expression but I´m not sure to use replaceall, replace or ereplace. Any help, please?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:07:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Copying-and-replacing-some-column-values-from-table-A-to-table-B/m-p/2345914#M113373</guid>
      <dc:creator>FGuijarro</dc:creator>
      <dc:date>2024-11-15T22:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Copying and replacing some column values from table A to table B</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Copying-and-replacing-some-column-values-from-table-A-to-table-B/m-p/2345915#M113374</link>
      <description>&lt;P&gt;"bbb".equals(row3.razonsocial) ? "zzz" : row3.razonsocial&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 10:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Copying-and-replacing-some-column-values-from-table-A-to-table-B/m-p/2345915#M113374</guid>
      <dc:creator>jlolling</dc:creator>
      <dc:date>2023-02-09T10:21:08Z</dc:date>
    </item>
  </channel>
</rss>

