<?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>question Re: How to insert or update a record in mySQL table if sourse db table name X and destination db table name Y using UpdateAttribute processor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-or-update-a-record-in-mySQL-table-if-sourse-db/m-p/347308#M235124</link>
    <description>&lt;P&gt;I got solution for this.&lt;/P&gt;&lt;P&gt;TableName : ${databaseName:equalsIgnoreCase("nrpsubscriptiondb2306"):and(${tableName:equalsIgnoreCase("status")}):ifElse("subscription_status",${databaseName:equalsIgnoreCase("nrpuserorgdb2306"):and(${tableName:equalsIgnoreCase("status")}):ifElse("user_org_status",${tableName})})}&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2022 14:40:12 GMT</pubDate>
    <dc:creator>AbhishekSingh</dc:creator>
    <dc:date>2022-07-11T14:40:12Z</dc:date>
    <item>
      <title>How to insert or update a record in mySQL table if sourse db table name X and destination db table name Y using UpdateAttribute processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-or-update-a-record-in-mySQL-table-if-sourse-db/m-p/347300#M235122</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to insert or update a record in mySQL table if sourse db table name X and destination db table name Y using UpdateAttribute processor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to achieve this if source and destination has single table but I have multiple table where source db table's names A,B and destination table's names Y,Z . I tried below condition but getting a error.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;schema.name :&amp;nbsp;${${databaseName}:equalsIgnoreCase(nrpsubscriptiondb2306):and(${tableName}:equalsIgnoreCase(status)):ifElse(subscription_status,${tableName})}&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error log:&amp;nbsp;due to Unexpected token ':' at line 1, column 76. Query: ${${databaseName}:equalsIgnoreCase(nrpsubscriptiondb2306):and(${tableName}:equalsIgnoreCase(status)):ifElse(subscription_status,${tableName})}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2022-07-11 17-22-43.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34826i7D366073C74B4AB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2022-07-11 17-22-43.png" alt="Screenshot from 2022-07-11 17-22-43.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 12:08:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-or-update-a-record-in-mySQL-table-if-sourse-db/m-p/347300#M235122</guid>
      <dc:creator>AbhishekSingh</dc:creator>
      <dc:date>2022-07-11T12:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert or update a record in mySQL table if sourse db table name X and destination db table name Y using UpdateAttribute processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-or-update-a-record-in-mySQL-table-if-sourse-db/m-p/347308#M235124</link>
      <description>&lt;P&gt;I got solution for this.&lt;/P&gt;&lt;P&gt;TableName : ${databaseName:equalsIgnoreCase("nrpsubscriptiondb2306"):and(${tableName:equalsIgnoreCase("status")}):ifElse("subscription_status",${databaseName:equalsIgnoreCase("nrpuserorgdb2306"):and(${tableName:equalsIgnoreCase("status")}):ifElse("user_org_status",${tableName})})}&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 14:40:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-or-update-a-record-in-mySQL-table-if-sourse-db/m-p/347308#M235124</guid>
      <dc:creator>AbhishekSingh</dc:creator>
      <dc:date>2022-07-11T14:40:12Z</dc:date>
    </item>
  </channel>
</rss>

