<?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: Joining tables by creating a view and querying the view using querydatabasetable in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Joining-tables-by-creating-a-view-and-querying-the-view/m-p/186788#M70525</link>
    <description>&lt;DIV&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20255/dheeruksingh.html" nodeid="20255" target="_blank"&gt;@dhieru singh&lt;/A&gt; &lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;Yes you can use the &lt;STRONG&gt;view name as table name&lt;/STRONG&gt; in query database table processor and it's better to have &lt;STRONG&gt;Maximum-value column(s)&lt;/STRONG&gt; then this processor will pull only the&lt;STRONG&gt; new records&lt;/STRONG&gt; that got added (or) modified.&lt;/LI&gt;&lt;LI&gt;if we don't have any &lt;STRONG&gt;max value columns&lt;/STRONG&gt; mentioned in configurations then processor &lt;STRONG&gt;will keep track of all columns&lt;/STRONG&gt;, which could have performance impact. &lt;/LI&gt;&lt;LI&gt;You can view the state of the processor by R&lt;STRONG&gt;ight clicking and click on view state&lt;/STRONG&gt; button, if you want to clear the state then click on clear state at right corner.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Query database table Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="43390-query.png" style="width: 674px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18780i65C324F4F8149A72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="43390-query.png" alt="43390-query.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have changed Max Rows Per Flow File as &lt;STRONG&gt;100K&lt;/STRONG&gt;,so the processor will fetches &lt;STRONG&gt;100K&lt;/STRONG&gt; records per file (or) you can leave that as &lt;STRONG&gt;0(default)&lt;/STRONG&gt; will give you all the records in &lt;STRONG&gt;1 Flow File&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Connection pool Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="43389-connection.png" style="width: 786px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18781i278B63F30AADBE34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="43389-connection.png" alt="43389-connection.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;above screenshot connection pool is an example for &lt;STRONG&gt;sql server&lt;/STRONG&gt; as you can see the &lt;STRONG&gt;highlighted text,&lt;/STRONG&gt; if you &lt;STRONG&gt;don't mention&lt;/STRONG&gt; any &lt;STRONG&gt;database&lt;/STRONG&gt; in the connection URL then it will connects to default database in source.&lt;/P&gt;&lt;PRE&gt;jdbc:sqlserver://&amp;lt;ip-address-server&amp;gt;:&amp;lt;port&amp;gt; //this connection string we won't mentioned database name so it connects to default database in sql server.&lt;/PRE&gt;</description>
    <pubDate>Sun, 18 Aug 2019 08:09:29 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2019-08-18T08:09:29Z</dc:date>
    <item>
      <title>Joining tables by creating a view and querying the view using querydatabasetable</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Joining-tables-by-creating-a-view-and-querying-the-view/m-p/186786#M70523</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Thanks a lot this awesome community.&lt;/P&gt;&lt;P&gt;I read tha JOIN queries are not possible in NiFi, &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/64667/joining-tables-within-nifi.html" target="_blank"&gt;https://community.hortonworks.com/questions/64667/joining-tables-within-nifi.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;so I thought of a workaround by creating a view in the database and then queriyng the view&lt;/P&gt;&lt;P&gt;so I will be using tablename as the view name in the properties of querydatabasetable, I do not have a sample database, is this something which can be done?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 03:34:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Joining-tables-by-creating-a-view-and-querying-the-view/m-p/186786#M70523</guid>
      <dc:creator>dhieru</dc:creator>
      <dc:date>2017-11-01T03:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Joining tables by creating a view and querying the view using querydatabasetable</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Joining-tables-by-creating-a-view-and-querying-the-view/m-p/186787#M70524</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Thanks a lot for confirming, appreciate it.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 07:51:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Joining-tables-by-creating-a-view-and-querying-the-view/m-p/186787#M70524</guid>
      <dc:creator>dhieru</dc:creator>
      <dc:date>2017-11-01T07:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Joining tables by creating a view and querying the view using querydatabasetable</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Joining-tables-by-creating-a-view-and-querying-the-view/m-p/186788#M70525</link>
      <description>&lt;DIV&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20255/dheeruksingh.html" nodeid="20255" target="_blank"&gt;@dhieru singh&lt;/A&gt; &lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;Yes you can use the &lt;STRONG&gt;view name as table name&lt;/STRONG&gt; in query database table processor and it's better to have &lt;STRONG&gt;Maximum-value column(s)&lt;/STRONG&gt; then this processor will pull only the&lt;STRONG&gt; new records&lt;/STRONG&gt; that got added (or) modified.&lt;/LI&gt;&lt;LI&gt;if we don't have any &lt;STRONG&gt;max value columns&lt;/STRONG&gt; mentioned in configurations then processor &lt;STRONG&gt;will keep track of all columns&lt;/STRONG&gt;, which could have performance impact. &lt;/LI&gt;&lt;LI&gt;You can view the state of the processor by R&lt;STRONG&gt;ight clicking and click on view state&lt;/STRONG&gt; button, if you want to clear the state then click on clear state at right corner.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Query database table Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="43390-query.png" style="width: 674px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18780i65C324F4F8149A72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="43390-query.png" alt="43390-query.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have changed Max Rows Per Flow File as &lt;STRONG&gt;100K&lt;/STRONG&gt;,so the processor will fetches &lt;STRONG&gt;100K&lt;/STRONG&gt; records per file (or) you can leave that as &lt;STRONG&gt;0(default)&lt;/STRONG&gt; will give you all the records in &lt;STRONG&gt;1 Flow File&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Connection pool Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="43389-connection.png" style="width: 786px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18781i278B63F30AADBE34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="43389-connection.png" alt="43389-connection.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;above screenshot connection pool is an example for &lt;STRONG&gt;sql server&lt;/STRONG&gt; as you can see the &lt;STRONG&gt;highlighted text,&lt;/STRONG&gt; if you &lt;STRONG&gt;don't mention&lt;/STRONG&gt; any &lt;STRONG&gt;database&lt;/STRONG&gt; in the connection URL then it will connects to default database in source.&lt;/P&gt;&lt;PRE&gt;jdbc:sqlserver://&amp;lt;ip-address-server&amp;gt;:&amp;lt;port&amp;gt; //this connection string we won't mentioned database name so it connects to default database in sql server.&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:09:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Joining-tables-by-creating-a-view-and-querying-the-view/m-p/186788#M70525</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T08:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Joining tables by creating a view and querying the view using querydatabasetable</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Joining-tables-by-creating-a-view-and-querying-the-view/m-p/186789#M70526</link>
      <description>&lt;P&gt;@Shu Appreciate your help This is as clear an explanation as it can get Thanks again&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 23:01:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Joining-tables-by-creating-a-view-and-querying-the-view/m-p/186789#M70526</guid>
      <dc:creator>dhieru</dc:creator>
      <dc:date>2017-11-01T23:01:04Z</dc:date>
    </item>
  </channel>
</rss>

