<?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: How to query a PostgreSQL DB in talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249536#M34047</link>
    <description>&lt;P&gt;Hi Sameer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"select max(created_date) as max_date from " + context.orders_table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You don't need the semicolon at the end.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Roland&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 21:15:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-07T21:15:51Z</dc:date>
    <item>
      <title>How to query a PostgreSQL DB in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249533#M34044</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to query my PostgreSQL DB using the tDBinput component, but I am getting errors.&lt;/P&gt;&lt;P&gt;Following is my query in the query builder:&lt;/P&gt;&lt;P&gt;"select max(created_date) as max_date from \""+context.orders_table+"\";"&lt;/P&gt;&lt;P&gt;When I try to replace the context variable with the actual table name using the following query, it gives me appropriate results, the following is the query:&lt;/P&gt;&lt;P&gt;select max(created_date) as max_date from "Orders_Table";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me write a query having a context variable so it runs fine?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249533#M34044</guid>
      <dc:creator>Sameer_Keluskar</dc:creator>
      <dc:date>2024-11-16T01:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a PostgreSQL DB in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249534#M34045</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPBQAA4"&gt;@Sameer_Keluskar&lt;/A&gt;&amp;nbsp;, you need to call the below query in tDBinput and ";" not required.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;select max(created_date) as max_date from "Orders_Table"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;"select max(created_date) as max_date from "\"+context.orders_table+"\""&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 05:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249534#M34045</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-07-07T05:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a PostgreSQL DB in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249535#M34046</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPBQAA4"&gt;@Sameer_Keluskar&lt;/A&gt;&amp;nbsp;, you need to call the below query in tDBinput and ";" not required.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;select max(created_date) as max_date from "Orders_Table"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;"select max(created_date) as max_date from "\"+context.orders_table+"\""&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 05:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249535#M34046</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-07-07T05:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a PostgreSQL DB in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249536#M34047</link>
      <description>&lt;P&gt;Hi Sameer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"select max(created_date) as max_date from " + context.orders_table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You don't need the semicolon at the end.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Roland&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 21:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249536#M34047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-07T21:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a PostgreSQL DB in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249537#M34048</link>
      <description>&lt;P&gt;Hi Sameer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"select max(created_date) as max_date from " + context.orders_table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You don't need the semicolon at the end.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Roland&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 21:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249537#M34048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-07T21:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a PostgreSQL DB in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249538#M34049</link>
      <description>&lt;P&gt;First of all, what kind of errors you get?&lt;/P&gt; 
&lt;P&gt;I guess you get the error about missing table?&lt;/P&gt; 
&lt;P&gt;In this case please change your query this way:&lt;/P&gt; 
&lt;PRE&gt;"select max(created_date) as max_date from "+context.orders_table&lt;/PRE&gt; 
&lt;P&gt;If you put tables in double quotas this means the table name must exists exactly this way (case sensitive!!) in the database. Mostly this is not the case. I bet your table is shown as order_table in your database browser.&lt;/P&gt; 
&lt;P&gt;The other problem is the ; at the end of your query. This ; is NOT part of a statement, many tools use this to separate between statements or it is used within code blocks of functions. Oracle e.g. do not accept statements ending with ;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 10:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249538#M34049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-08T10:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a PostgreSQL DB in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249539#M34050</link>
      <description>&lt;P&gt;First of all, what kind of errors you get?&lt;/P&gt; 
&lt;P&gt;I guess you get the error about missing table?&lt;/P&gt; 
&lt;P&gt;In this case please change your query this way:&lt;/P&gt; 
&lt;PRE&gt;"select max(created_date) as max_date from "+context.orders_table&lt;/PRE&gt; 
&lt;P&gt;If you put tables in double quotas this means the table name must exists exactly this way (case sensitive!!) in the database. Mostly this is not the case. I bet your table is shown as order_table in your database browser.&lt;/P&gt; 
&lt;P&gt;The other problem is the ; at the end of your query. This ; is NOT part of a statement, many tools use this to separate between statements or it is used within code blocks of functions. Oracle e.g. do not accept statements ending with ;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 10:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-query-a-PostgreSQL-DB-in-talend/m-p/2249539#M34050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-08T10:53:02Z</dc:date>
    </item>
  </channel>
</rss>

