<?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: Return query from postgreSQL into Talend Flow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Return-query-from-postgreSQL-into-Talend-Flow/m-p/2239848#M27507</link>
    <description>&lt;P&gt;Your SQL query contains " inside which is not allowed here except if you protect them by an "\".&lt;/P&gt;&lt;P&gt;Replace&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"Traffic"&lt;/PRE&gt;&lt;P&gt;by&lt;/P&gt;&lt;PRE&gt;\"Traffic\"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and so on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2017 15:18:47 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-04-28T15:18:47Z</dc:date>
    <item>
      <title>Return query from postgreSQL into Talend Flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Return-query-from-postgreSQL-into-Talend-Flow/m-p/2239847#M27506</link>
      <description>&lt;PRE&gt;"
SELECT 2 AS rowtype
     , source AS "TrafficTypes_Name"
     , COUNT(source) AS "Traffic"
     , to_char(week,'MM/dd/yyyy') AS "Week_Ending"
  FROM amazon.infocentertracker
  where project_id = 'LFC'
GROUP 
    BY source
     , to_char(week,'MM/dd/yyyy')
UNION ALL
SELECT 1 
     , 'Visitor Center Walk-ins'
     , COUNT(source)
     , to_char(week,'MM/dd/yyyy') as week 
  FROM amazon.infocentertracker
  where project_id = 'LFC'
GROUP 
    BY to_char(week,'MM/dd/yyyy')
ORDER 
    BY "Week_Ending"
     , rowtype
"&lt;/PRE&gt;&lt;P&gt;I am using tpostgresqlInput to return results of the above query into Talend but it throws an error saying &lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;"Syntax Error On token, delete these tokens."&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is tpostgreSQLinput the right component to use for such instances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interestingly enough, when I do "select * from amazon.infocentertracker", and hit Guess Schema tpostgreSQLinput returns the schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insights would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 15:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Return-query-from-postgreSQL-into-Talend-Flow/m-p/2239847#M27506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-28T15:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Return query from postgreSQL into Talend Flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Return-query-from-postgreSQL-into-Talend-Flow/m-p/2239848#M27507</link>
      <description>&lt;P&gt;Your SQL query contains " inside which is not allowed here except if you protect them by an "\".&lt;/P&gt;&lt;P&gt;Replace&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"Traffic"&lt;/PRE&gt;&lt;P&gt;by&lt;/P&gt;&lt;PRE&gt;\"Traffic\"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and so on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 15:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Return-query-from-postgreSQL-into-Talend-Flow/m-p/2239848#M27507</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-04-28T15:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Return query from postgreSQL into Talend Flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Return-query-from-postgreSQL-into-Talend-Flow/m-p/2239849#M27508</link>
      <description>&lt;P&gt;Thanks TRF for the rapid response, now it states &lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;Syntax Error, insert ")" to complete MethodInvocation. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;It does not work even after I inserted the ().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"
(SELECT 2 AS rowtype
     , source AS \"TrafficTypes_Name\"
     , COUNT(source) AS \"Traffic\"
     , to_char(week,'MM/dd/yyyy') AS \"Week_Ending\"
  FROM amazon.infocentertracker"
  where project_id = 'LFC'
GROUP 
    BY source
     , to_char(week,'MM/dd/yyyy')
UNION ALL
SELECT 1 
     , 'Visitor Center Walk-ins'
     , COUNT(source)
     , to_char(week,'MM/dd/yyyy') as week 
  FROM amazon.infocentertracker
  where project_id = 'LFC'
GROUP 
    BY to_char(week,'MM/dd/yyyy')
ORDER 
    BY \"Week_Ending\"
     , rowtype);
"&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Apr 2017 15:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Return-query-from-postgreSQL-into-Talend-Flow/m-p/2239849#M27508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-28T15:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Return query from postgreSQL into Talend Flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Return-query-from-postgreSQL-into-Talend-Flow/m-p/2239850#M27509</link>
      <description>&lt;P&gt;You don't need the () but you have to change to remove " after infocentertracker in your query.&lt;/P&gt;
&lt;P&gt;Got it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 15:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Return-query-from-postgreSQL-into-Talend-Flow/m-p/2239850#M27509</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-04-28T15:49:13Z</dc:date>
    </item>
  </channel>
</rss>

