<?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: Apache nifi merge two different csv file and create combine output to json in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-merge-two-different-csv-file-and-create-combine/m-p/235240#M197060</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/97382/chintan2010visani.html" nodeid="97382"&gt;@Chintan Visani&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I believe it's possible. Let me explain my usecase first. &lt;STRONG&gt;My objective is to take 4 CSVs as input and joining all of them based on a unique column named 'CustomerID' available in all the CSVs. &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I did not directly join the CSVs rather I put each of them into database tables and later join them using ExecuteSQL command. &lt;/P&gt;&lt;P&gt;1. GetFile -&amp;gt; UpdateAttribute -&amp;gt; PutDatabaseRecord (For each of the CSVs i.e., for my case - 4 CSVs put into 4 different tables)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;P&gt;2. ExecuteSQL (you write SQL query to join all the required tables) -&amp;gt; ConvertRecord -&amp;gt; PutFile (This will give you the join of all the CSVs)&lt;/P&gt;&lt;P&gt;3. After that again, GetFile -&amp;gt; UpdateAttribute -&amp;gt; PutDatabaseRecord (If you again want to put the aggregated/joined CSV into the DB, then you can do it again)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;P&gt;Hope it would help. &lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Spandan.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2019 16:28:39 GMT</pubDate>
    <dc:creator>spandan_mohanty</dc:creator>
    <dc:date>2019-01-14T16:28:39Z</dc:date>
  </channel>
</rss>

